Question: Write a program (named Gradebook.java) that reads the final grades for a class. The final grades are saved in a data file. After reading in

Write a program (named Gradebook.java) that reads the final grades for a class. The final grades are saved in a data file. After reading in the data, calculate average grade for the whole class, find the lowest and highest, then printout the 3 numbers in a nice format. A sample data file (gradebook.txt) and output are given for testing purpose. Data file: 86 89 78 100 76 Sample output: Average: 87.80 Lowest: 76.00 Highest: 100.00 

It will be automatically graded. Here is a sample output:

 Average: 85.80 Lowest: 76.00 Highest: 100.00 

gradebook.txt

86 89 78 100 76 88 91 100 78

89

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!