![bartekpiglo](/avatars/12581.jpg)
bartekpiglo
16.12.2021 •
Mathematics
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.
Solved
Show answers
More tips
- P Philosophy 8 привычек, чтобы достичь счастливой жизни...
- H Health and Medicine What to Eat to Lose Weight?...
- S Society and Politics Will Japan become Russia s Military Enemy?...
- P Philosophy Personal attitude towards Confession: how to prepare and undergo the procedure correctly?...
- H Health and Medicine Flu: How to Recognize It by the First Symptoms?...
- F Food and Cooking How to Sober Up Quickly? Important Facts and Tips...
- H Health and Medicine How to Properly Take a Blood Sugar Test?...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
Answers on questions: Mathematics
- M Mathematics Say we have a set of linear equations given by a~x =~y. if a is invertible, we know that the solution for ~x is ~x = a −1~y. however, what if a is not a square matrix? in 16a, you...
- M Mathematics Find the charge on the capacitor in an lrc-series circuit at t = 0.02 s when l = 0.05 h, r = 3 ω, c = 0.02 f, e(t) = 0 v, q(0) = 7 c, and i(0) = 0 a. (round your answer to four decimal...
- M Mathematics What transformation of the parent function f(x) is made to get 4f(x + 2)? o a. a vertical stretch by 4 and horizontal shrink by 1/2 o b. a vertical stretch by 4 and horizontal shrink...
- M Mathematics What are the roots of x in -10x + 12x - 9 = 0? 0 a _12_6/1/6 _5 10 ob._3_30_us 5 10 _3_3/24 101_20 3 ti/24 oe_1_2/6 5 10 reset next...
- M Mathematics Prove this theorem indirectly. assume you know that the sum of the angles of a triangle equals 180° and a right angle = 90°. prove that a triangle cannot have two right angles....
- M Mathematics The height of a triangle is 1 cm less than twice the length of the base. let x = the length of the base. write a function rule for the area of the triangle and determine the area if...
- M Mathematics What is the slope, m, and the y-intercept of the line that is graphed below? m = 1; (0, 3) m = 1; (–3, 0) m = –1; (0, 3) m = –1; (–3, 0)...
- M Mathematics Identify the following numerical values: average of mr. winking s 2nd period amdm scores on a study abotu the amdm scores for gwinnett a. population b. sample c. parameter d. statistic...
- M Mathematics A45-pound bag of rice is going to be split between 5 families. how much rice will each family receive?...
- M Mathematics On a map each city is 5.5 in apart every two in equal 75miles what is the distance between two cities?...
Ответ:
stop posting your question over and over
Step-by-step explanation: