Question: 1. Using the switch statement, write a program that converts a numerical grade into a letter grade: Enter numerical grade: 84 Letter grade: B Use

1. Using the switch statement, write a program that converts a numerical grade into a letter grade:

Enter numerical grade: 84

Letter grade: B

Use the following grading scale: A = 90~100, B = 80~89, C = 70~79, D = 60~69, F = 0~59. Print an error message if the grade is larger than 100 or less than 0. Hint: Break the grade into two digits, then use a switch statement to test the tens digit.

1. Write your program here:

#include

int main(){

return 0;

}

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!