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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started