Given the posted data file called grades.dat that has a list of five students an
ID: 3621698 • Letter: G
Question
Given the posted data file called grades.dat that has a list of five students and their marks on 6 tests, write a program that will:1. Create two arrays. One will be called student and will be an array of five Strings. The second will be a two dimensional array of integer values called mark.
2. Populate the arrays by connecting a scanner object to the file and reading the data into the arrays.
3. Display the arrays with appropriate headings such as:
a. Student Test1 test2 test3 test4 test5 test6
4. Create an array of five double values called studentAverage and populate it with the averages of the grades of the five students.
5. Create an array of double values called testAverages with six elements and populate it with the averages of the marks on the six tests.
6. Display the arrays with the student averages following the student marks and the test averages below the test marks.
7. Display the student’s name and mark for the student with the highest mark on each test.
8. Display the name and average of the student with the highest average on the tests.
Use methods for parts 4, 5, 7 and 8