Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the switch statement, write a program that converts a letter grade into its numerical equivalent. The program should ask the user for a letter
Using the switch statement, write a program that converts a letter grade into its numerical equivalent. The program should ask the user for a letter grade, convert it to uppercase then display the corresponding quality point. If the user types any other letter display an error message. Use the grading system below:
Grade | Quality Point |
A | 4.0 |
B | 3.0 |
C | 2.0 |
D | 1.0 |
F | 0.0 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started