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. Here is a sample run:

Enter a letter grade: B The numeric value for grade B is

Enter a letter grade: B The numeric value for grade B is 3 JEnter Enter a letter grade: T -FEnter T is an invalid grade

Step by Step Solution

3.44 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan Create the class Lettergrade Define the main method Prompt the user to enter the grade ... View full answer

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 Java Programming Questions!