Assignment 3

extended to Friday 4 February at 5:00 PM. (was Thursday 3 February at 01:00 AM.)

Write a program that will:

  1. Ask the user to input (type in) three quiz scores.
  2. Output the average of the 3 scores, rounded to just one decimal place.

Here are two sample runs of the program, but it should work for other numbers as well. (The user types the numbers on the first 3 lines; the rest is output by the program.) Run one:

Enter quiz 1 score: 43
Enter quiz 2 score: 21.9
Enter quiz 3 score: 84.7
Thank you. The average is: 49.9

Run two:

Enter quiz 1 score: 67.778
Enter quiz 2 score: 88.812
Enter quiz 3 score: 89.8333
Thank you. The average is: 82.1

As before, submit by attaching your .cpp file to an email.