Question: import java.util.Scanner; import java.io.FileNotFoundException; import java.io.IOException; import java.io.BufferedWriter; import java.io.BufferedReader; import java.io.FileWriter; import java.io.*; 0 public class Lecture NotesModule7 { public static void main(String[]

![import java.io.*; 0 public class Lecture NotesModule7 { public static void main(String[]](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6643481c18e3b_4036643481bd8996.jpg)

![() () TestGrades = new double [4] [2]; String [] names =](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6643481e24a61_4066643481e07adf.jpg)
import java.util.Scanner; import java.io.FileNotFoundException; import java.io.IOException; import java.io.BufferedWriter; import java.io.BufferedReader; import java.io.FileWriter; import java.io.*; 0 public class Lecture NotesModule7 { public static void main(String[] args) throws FileNotFoundException, IOException { // TODO code application logic here double () () TestGrades = new double [4] [2]; String [] names = {"Bill", "Jan", "Joe", "Ken"}; String printString; int high, low; www double average; int innerLoop, outterLoop; Scanner scan = new Scanner(System.in); for (outterLoop = 0; outterLoop } } while (ans == false) { System.out.print ("Please Enter Test " + (innerLoop+1) + " Grade Test for " try{ } score = scan.nextDouble(); scan.nextLine(); TestGrades [outterLoop] [innerLoop] = score; average + TestGrades [outterLoop] [innerLoop]; ans true; catch (java.util. InputMismatchException e) (System.out.print ("incorrect data; please try again"); scan.nextLine(); score scan.next Double(); } //calculate student's average by dividing the average by 2 //print out the student's average System.out.print (" Enter next Student's record "); //write to disk for (outterLoop = 0; outterLoop System.out.println("Reading from file "); File file = new File("testGrades.csv"); Scanner sc new Scanner (file); while (sc.hasNextLine()) System.out.println(sc.nextLine()); } Project 7A Project Objectives: to allow the student to work with multi-dimensional arrays work with input and output files and terminating file exceptions programmatically Project Description: For this task, you've been asked by a fellow instructor to create a program that will keep 4 students' two test grades. You will 'hard-code' the student's name in the names array. You will create a dynamic (meaning user inputs the data) interface to enter the student's test grades each. There are two tests accounted for each student. You will incorporate try/catch statements to catch errors and handle fatal exceptions. When finished, test grades will be saved under the project files with the name of testGrades.csv. This will create/append the .csv file with the current data. A .csv, or comma-separated value file is easily imported to most applications for further processing. For example, you could input file to excel or access and drill down on data. You are to create the java file that will accomplish the above. A lot of the code is shown in the figures on the following pages. Some code has not been provided and is indicated with a //comment. When you've finished the project, you will zip the root folder up and submit it through blackboard for review.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
