Question: Write a Java class, which is signs a letter grade to quiz scores according to the following rules: 90-100 is an A, 80-89 is a

Write a Java class, which is signs a letter grade to quiz scores according to the following rules: 90-100 is an A, 80-89 is a B, 70-79 is a C, 60-69 is a D, and anything less is a F. The program should prompt the user for a integer quiz score, and then output the corresponding letter grade.
-use Scanner class to read the quiz grade
-use while or do-while or a while loop to repeat the input, until grade is between 0-100.
-use either if-else if-else or switch- case statement for ranges of grades
Output example in picture
Write a Java class, which is signs a letter grade to quiz

This program calculates the letter grade from the integer quiz grade Enter quiz grade: 102 This program calculates the letter grade from the integer quiz grade Enter quiz grade: 3 This program calculates the letter grade from the integer quiz grade Enter quiz grade: 85 Your quiz letter grade is B

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!