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
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