Question: *Use Java as the programming language. In this assignment, you are going to calculate the average test scores of students and the class average test

*Use Java as the programming language. In this assignment, you are going to calculate the average test scores of students and the class average test score.

The names and test scores of the students are in a file called studentTestScores.txt.

Each line of the file contains one student and their 4 test scores.

First, you will ask the user for the name of the file with the students test scores.

Using the users input, open studentTestScores.txt for reading.

You will need to read each line of the file, calculate the students average test score, and write their name and average to a file called studentTestAverages.txt.

You must have exception handling for the following: *FileNotFoundException when opening the files * If user enters wrong file name, allow them to re-enter it * InputMismatchExcpetion or NumberFormatException when reading from the file * If this exception occurs, it displays and error message and the program ends. *studentTestAverages.txt is empty

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!