Question: JAVA Programming Requirements, Java class name = LetterGrades Write a java program. Ask user to enter the numeric grade. This input can be a decimal

JAVA Programming Requirements,

Java class name = LetterGrades

  1. Write a java program.
  2. Ask user to enter the numeric grade.
    1. This input can be a decimal value.
  3. Accept -1 which means the program will end the loop.
  4. Validate the grade is between 0 and 100.
    1. If invalid, display error message and ask for another value.
    2. If numeric grade is valid,
      1. Test to see if the grade letter is A (100-90), B (89.99-80), C (79.99-70), D (69.99-60), F (59.99-0).
      2. Print out the grade letter in a appropriate message.
  5. Loop and test another numerical grade until -1 is entered.

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!