Question: Problem: Test Average and Grade Write a program that reads a text file named test_scores.txt to read five test scores. The program should display a

Problem:

Test Average and Grade Write a program that reads a text file named test_scores.txt to read five test scores. The program should display a each test score, letter grade for each test score, average of five test scores and finally the letter grade for the average test score. Write the following methods in the program:

averageCalculation this method should accept the total of all test scores as argument and return the average of the scores.

gradeDetermination - this method should accept a test score as an argument and return a letter grade for the score, based on the following grading scale:

Score Letter Grade 90-100 A

80-89 B

70-79 C

60-69 D

Below 60 F

Please write the Javadoc comment before each method which explains the working of method, parameters it receives and return value. Expected Output: Score for test1 is: 83.0 Grade for test1 is: B Score for test2 is: 75.0 Grade for test2 is: C Score for test3 is: 66.0 Grade for test3 is: D Score for test4 is: 51.5 Grade for test4 is: F Score for test5 is: 96.5 Grade for test5 is: A Average of test scores is:74.4 The final Grade is: C Test_scores.(txt) 83.0 75.0 66.0 51.5 96.5

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!