Ask Question
28 April, 11:45

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.

+1
Answers (2)
  1. 28 April, 14:39
    0
    I am thinking it's A. Not so sure though.
  2. 28 April, 14:40
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers