Question: Question 5. (12 pts, 3 each) Write a complete Java program to do the following: a) Read a file named testScoreIn.txt representing test scores for
Question 5. (12 pts, 3 each) Write a complete Java program to do the following: a) Read a file named testScoreIn.txt representing test scores for a class of students. Each record contains an id number and three test scores For example, a student record might look like BK1234 87 72 91 b) Without using an array, read each student's information, one record at a time and compute the student's average (as type double). c) Write to an output file testScoreOut.txt the student id, three grades and the average (as a real number) d) At the end, print to the screen the id number of the student with the highest average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
