Question: Write a C++ program that will ask the user to enter an integer test score between 0 and 99 and will then display a letter

Write a C++ program that will ask the user to enter an integer test score between 0 and 99 and will then display a letter grade corresponding to the score according to the following grading scheme:

Score Grade

90-99 A

80-89 B

70-79 C

60-69 D

0-59 F

Program requirement: You must use a switch statement in your program to handle the display of the grade.

Hint: Have your switch statement switch on the tens digit of the score.

Here are some output examples from running the program (user input is in bold):

Run 1:

Enter score: 82

Grade = B

Run 2:

Enter score: 90

Grade = A

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!