188k views
2 votes
Asks the user to enter 3 test scores as integers. Then print out the average of the numbers. Hint: Addition and Division can be done like so:

a) sumResult = firstNum + secondNum; quotientResult = firstNum / secondNum;
b) sumResult = firstNum - secondNum; quotientResult = firstNum * secondNum;
c) sumResult = firstNum + secondNum; quotientResult = firstNum * secondNum;
d) sumResult = firstNum - secondNum; quotientResult = firstNum / secondNum;

1 Answer

3 votes

Final answer:

To find the average of three test scores, add up the scores and then divide the sum by 3.

Step-by-step explanation:

To find the average of three test scores, you need to add up the scores and then divide the sum by 3.

Here is an example:

Let's say the three test scores are 85, 90, and 92.

Add the scores: 85 + 90 + 92 = 267

Divide the sum by 3: 267 / 3 = 89

So, the average of the three test scores is 89.

User Firecall
by
7.8k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories