Question: Write a program in Java by using While loops to allow the user to enter 10 grades. And convert a letter grade to an equivalent
Write a program in Java by using While loops to allow the user to enter 10 grades. And convert a letter grade to an equivalent numeric value on a 4 point scale. From the keyboard input a letter grade (upper case).
The grade is 4.0 for A, 3.0 for B, 2.0 for C, 1.0 for D, and 0.0 for F. For any other input set the value to 0.0 and display an error message.
If the input is A, the output should look like this:
The letter grade is A, which is 4.0
If the input is D, the output should look like this:
The letter grade is D, which is 1.0
If the input is X, the output should look like this:
The letter grade is X, which is an error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
