Question: Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays its corresponding numeric value 4,
Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays its corresponding numeric value 4, 3, 2, 1, or 0. For other input, display invalid grade. Here is a sample run:
Enter a letter grade: B
The numeric value for grade B is 3
Enter a letter grade: T
T is an invalid grade
Step by Step Solution
3.35 Rating (158 Votes )
There are 3 Steps involved in it
import javautilScanner public class Exercise0414 public stat... View full answer
Get step-by-step solutions from verified subject matter experts
