Question: You are to write a Java program that will read in data from a text file called StudentInfo . dat . This file is supplied

You are to write a Java program that will read in data from a text file called StudentInfo.dat. This file is supplied to you. The file will have students names and scores from their 4 exams. The program should calculate the students average score. The program will write the results to an output file in the format of Last name, First name, tab, average grade. See example output file. There are many ways to approach this project. You will not need to process multiple pieces of data from each line . The format of the input will not change. It will always be a name on one line followed by 4 scores each on their own line. You will read the data from a file into a string array, manipulate it so the name is in reverse order and the 4 scores are averaged. The output file should be named GradeReport.info. You will need to create a method that will step through the output file and print it. See the following page for the example input and output files. How can this program be writen only using a printwriter and a filewriter?
StudentInfo.dat
John Smith
98.5
87.0
82.9
91.7
Mary Cooper
78.2
69.9
80.2
66.5
Daniel Jones
99.9
95.0
92.3
90.0
Beth Bullock
89.5
56.4
78.3
66.0
Tracy Williams
89.3
91.2
95.5
90.4
GradeReport.info
STUDENT GRADE
Smith, John 90.02499999999999
Cooper, Mary 73.7
Jones, Daniel 94.3
Bullock, Beth 72.55
Williams, Tracy 91.6

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!