subject
Mathematics, 16.12.2021 01:50 leneenmarshall3125

There are 32 students standing in a classroom. Two different algorithms are given for finding the average height of the students. Algorithm A
Step 1: All students stand.
Step 2: A randomly selected student writes his or her height on a card and is seated.
Step 3: A randomly selected standing student adds his or her height to the value on the card, records the new value on the card, and is seated. The previous value on the card is erased.
Step 4: Repeat step 3 until no students remain standing.
Step 5: The sum on the card is divided by 32. The result is given to the teacher.

Algorithm B
Step 1: All students stand.
Step 2: Each student is given a card. Each student writes his or her height on the card.
Step 3: Standing students form random pairs at the same time. Each pair adds the numbers written on their cards and writes the result on one studentâs card; the other student is seated. The previous value on the card is erased.
Step 4: Repeat step 3 until one student remains standing.
Step 5: The sum on the last studentâs card is divided by 32. The result is given to the teacher.

Which of the following statements is true?

a. Algorithm A always calculates the correct average, but Algorithm B does not.
b. Algorithm B always calculates the correct average, but Algorithm A does not.
c. Both Algorithm A and Algorithm B always calculate the correct average.
d. Neither Algorithm A nor Algorithm B calculates the correct average.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 19:30
Plz.yesterday, the snow was 2 feet deep in front of archie’s house. today, the snow depth dropped to 1.6 feet because the day is so warm. what is the percent change in the depth of the snow?
Answers: 1
question
Mathematics, 21.06.2019 20:30
Asunflower was 20 1/2 inches tall. over the next 6 months, it grew to a height of 37 inches tall. what was the average yearly growth rate of the height of the plzzz write a proportion i will give you 100 points
Answers: 1
question
Mathematics, 21.06.2019 21:50
What is the rate for one gallon of gasoline
Answers: 3
question
Mathematics, 21.06.2019 23:00
Is there a direction u in which the rate of change of f(x,y)equals=x squared minus 3 xy plus 4 y squaredx2−3xy+4y2 at p(1,2) equals 14? give reasons for your answer. choose the correct answer below. a. no. the given rate of change is smaller than the minimum rate of change. b. no. the given rate of change is larger than the maximum rate of change. c. yes. the given rate of change is larger than the minimum rate of change and smaller than the maximum rate of change.
Answers: 2
You know the right answer?
There are 32 students standing in a classroom. Two different algorithms are given for finding the av...
Questions
question
English, 03.12.2020 14:00
question
Mathematics, 03.12.2020 14:00
question
Physics, 03.12.2020 14:00
question
Biology, 03.12.2020 14:00
Questions on the website: 13722367