Write a program GradeReporter.java
that has the user enter a grade percentage 0–100. The program then prints out the corresponding letter grade according to the following scale:
percentage >= 90 --> A
percentage >= 80 and < 90 --> B
percentage >= 70 and < 80 --> C
percentage >= 60 and < 70 --> D
percentage < 60 --> F
Write a String
method getLetterGrade(double percent)
that takes the percentage as a parameter and returns the corresponding letter grade. Use this method as part of the main()
program.