This program calculates the letter grade based on a numerical score.
Requirements:
Create a class named GradeCalculator with the following methods:
calculateGrade(int score) : This method takes an integer score as input and returns
a character representing the letter grade.
getLetterGradeDescription(char grade) : This method takes a character grade as
input and returns a string describing the corresponding letter grade (e.g., "A:
Excellent").
Use appropriate data types for score and grade.
Use an Control Structure statement to determine the letter grade based on the following
criteria:
A: 90-100
B: 80-89
C: 70-79
D: 60-69
F: below 60
Use the getLetterGradeDescription method to display a detailed explanation of the
grade.
A: Excellent
B: Good
C: Average
D: Below Average
F: Failing
Create a class named GradeCalculatorRunner that has the main method and will use the
GradeCalculator class.
Requirements:
Create a class named GradeCalculator with the following methods:
calculateGrade(int score) : This method takes an integer score as input and returns
a character representing the letter grade.
getLetterGradeDescription(char grade) : This method takes a character grade as
input and returns a string describing the corresponding letter grade (e.g., "A:
Excellent").
Use appropriate data types for score and grade.
Use an Control Structure statement to determine the letter grade based on the following
criteria:
A: 90-100
B: 80-89
C: 70-79
D: 60-69
F: below 60
Use the getLetterGradeDescription method to display a detailed explanation of the
grade.
A: Excellent
B: Good
C: Average
D: Below Average
F: Failing
Create a class named GradeCalculatorRunner that has the main method and will use the
GradeCalculator class.