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 StudentInfodat This file is supplied to you. The file will have students names and scores from their 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 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 scores are averaged. The output file should be named GradeReportinfo 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
Mary Cooper
Daniel Jones
Beth Bullock
Tracy Williams
GradeReport.info
STUDENT GRADE
Smith, John
Cooper, Mary
Jones, Daniel
Bullock, Beth
Williams, Tracy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
