Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java question 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

Java question

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% 

PLEASE HELP ME, make the output the same as above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

Students also viewed these Databases questions

Question

=+j Explain the essential nature of repatriation.

Answered: 1 week ago