Question: C++ Write a program that will ask the user for three test scores. These test scores are integers and vary from 0 to 100. Write

C++

Write a program that will ask the user for three test scores. These test scores are integers and vary from 0 to 100. Write the condition so that it uses 0 and 100 to determine if the score is not in range of 0 to 100. Do NOT use -1 and 101 or any other combination of values and do NOT use NOT (!) or else. The program should calculate the average of the three test scores and display the result as a floating point number rounded to the nearest tenth (one digit past the decimal point). Do not use the float data type.

The average test score should then be applied to the following table to determine a letter grade:

Test Score Average 90 to 100 80 to 89 70 to 79 60 to 69 0 to 59 Letter Grade A B C D F

For integer data use int. For floating point data use double. Avoid using short, long, and long long for integer data unless you cannot use the int data type. Also, avoid using float or long double for floating point data unless you cannot use the double data type.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!