Question: Write a program in Java. Test Average and Grade Write a program that asks the user to enter five test scores. The program should display

Write a program in Java.
Test Average and Grade
Write a program that asks the user to enter five test scores. The program should
display a letter grade for each score and the average test score. Write the following
methods in the program:
calcAverage-This method should accept five test scores as arguments and
return the average of the scores.
determineGrade-This method should accept a test score as an argument and
return a letter grade for the score, based on the following grading scale:
Enter the first test score: 55
Enter the second test score: 66
Enter the third test score: 77
Enter the fourth test score: 88
Enter the fifth test score: 99
Here are the grades and the average:
Test 1: F
Test 2: D
Test 3: C
Test 4: B
Test 5: A
Average score: 77.00
Average Letter Grade: C
Process finished with exit code 0
Write a program in Java. Test Average and Grade

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