Pagina de inicio
/
Tecnología
/
13. A 2-sided coin has an equal likelihood of landing on each side, One side is called "heads" and the out is called flipping that coin many times. 1) - 8)( reading ) else ( tallse Which of the following is NOT a possible combination of values of the variables in this program when it finishes running? A. talls has a value or O and heads has a value or 100 B. talls has a value or 100 and heads has a value oro C. talls has a value of 20 and heads has a value 0120 D. talls has a value or SO and heads has a value or 50 A restaurant knows from historical data that 60 out of 100 of Its customers purchase a full meal all while 40 out of 100 only or intended to simulate the orders of 1000 customers.

Problemas

13. A 2-sided coin has an equal likelihood of landing on each side, One side is called "heads" and the out is called
flipping that coin many times.
1) - 8)(
reading
) else (
tallse
Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?
A. talls has a value or O and heads has a value or 100
B. talls has a value or 100 and heads has a value oro
C. talls has a value of 20 and heads has a value 0120
D. talls has a value or SO and heads has a value or 50
A restaurant knows from historical data that 60 out of 100 of Its customers purchase a full meal all while 40 out of 100 only or
intended to simulate the orders of 1000 customers.

13. A 2-sided coin has an equal likelihood of landing on each side, One side is called "heads" and the out is called flipping that coin many times. 1) - 8)( reading ) else ( tallse Which of the following is NOT a possible combination of values of the variables in this program when it finishes running? A. talls has a value or O and heads has a value or 100 B. talls has a value or 100 and heads has a value oro C. talls has a value of 20 and heads has a value 0120 D. talls has a value or SO and heads has a value or 50 A restaurant knows from historical data that 60 out of 100 of Its customers purchase a full meal all while 40 out of 100 only or intended to simulate the orders of 1000 customers.

Solución

avatar
Marcosmaestro · Tutor durante 5 años
expert verifiedVerificación de expertos
4.6 (238 votos)

Responder

The answer is 'C'.

Explicar

## Step 1<br />The problem involves a 2-sided coin, where one side is called "heads" and the other is called "tails". The coin is flipped many times, and the values of "tails" and "heads" are recorded.<br /><br />## Step 2<br />The problem also involves a restaurant scenario where 60 out of 100 customers purchase a full meal, and 40 out of 100 only order drinks. This is intended to simulate the orders of 1000 customers.<br /><br />## Step 3<br />The problem asks which of the following is NOT a possible combination of values of the variables in this program when it finishes running.<br /><br />## Step 4<br />The options A, B, and D are possible combinations of values for "tails" and "heads". They are either 0 or 100, which is a possible outcome of flipping a coin.<br /><br />## Step 5<br />Option C, however, is not a possible combination. The values for "tails" and "heads" are 20 and 120 respectively. However, the total number of flips is 1000, and the maximum number of times either "tails" or "heads" can appear is 1000. Therefore, it is not possible for "tails" to have a value of 20 and "heads" to have a value of 120.
Haz clic para calificar: