Ask Question
13 August, 23:32

Christina used the following expression to calculate the average ages of her three program users: average = age1 + age2 + age3 / 3 However, her output is not correct. What did she do wrong?

A. She did not use parentheses around the age values to indicate the proper order of operations.

B. She did not use quotation marks around the age values to indicate the proper order of operations.

C. She should have used the multiplication symbol instead of the division symbol.

D. She should have used a string function to perform the calculation.

+2
Answers (2)
  1. 14 August, 00:41
    0
    I am thinking it's A. Not so sure though.
  2. 14 August, 01:15
    0
    Only age3 is divided by 3. To calculate the average, you should first add the ages, then divide by the number of ages. This can be accomplished by adding parenthesis around the age values. Answer A is the correct one.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Christina used the following expression to calculate the average ages of her three program users: average = age1 + age2 + age3 / 3 However, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers