Ask Question
7 December, 23:48

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. 7 December, 23:55
    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.
  2. 7 December, 23:57
    0
    I am thinking it's A. Not so sure though.
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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers