Question: Java Question. Can someone write this code? Instructions This program will read in test data for students(you should download the input file PairGrades.txt shown below)

Java Question. Can someone write this code?

Instructions

This program will read in test data for students(you should download the input file "PairGrades.txt" shown below) Your job is to produce an output file "average.txt" which displays the student's name once in uppercase and then a list of the grades, 4 underscores, the average for the grades, and an empty line. After all the students' information is listed, you should display the student with the highest average. One sentence should be displayed indicating which student scored the highest average.

The challenge will be getting the output file to look EXACTLY like below. You will need to display the average with exactly one digit after the decimal (use printf %.1f )

You will need to keep track of the previous and next student's name so you can group the scores together.

Example Input - PairGrades.txt file

Anna 85.5 98.5 Anna 67.4 ANNA 78.5 23.4 Carl 99.4 78.5 carl 45.2 Farzana 87.5 77.8 45.2 FARZANA 90.2 Farzana 23.1

Example Output - Average.txt file

Here is a sample run of the program.

ANNA 85.5 98.5 67.4 78.5 23.4 ____ avg = 70.7% CARL 99.4 78.5 45.2 ____ avg = 74.4% FARZANA 87.5 77.8 45.2 90.2 23.1 ____ avg = 64.8% 3 students were analyzed.  CARL scored the highest average: 74.4%

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!