have a assignment that we have to accomplish the same work as in a previous assignment except use two dimensional arrays... this is my previous assignment

A Computer Technology Instructor has a small class of 10 students. The instructor evaluates the performance of students in the class by administering 2 midterm tests and a Final Exam.

Write a program that prompts the instructor to enter the 10 grades of Midterm 1 and store these numbers in an array. Next prompt for the 10 grades of Midterm2 and store these numbers in a different array. Next prompt for the 10 grades of the Final Exam and store these in a different array. Next add Midterm1 to Midterm2 to Final and store the total of grades in a different array. Next, scan the array that has the totals and identify the minimum grade and maximum grade. Inform the instructor of the minimum grade and maximum grade.

Note : do not assume that the grades are in the range 0 to 100. Your program should function properly whether the grades are in the range 0 to 100 or any other range.

*****and this is my next assignments instructions

Use one two-dimensional array to accomplish the same work you did in the last Assignment. Think of the students as being the columns of the two-dimensional array. Think of the scores of Midterm 1 as occupying the first row, scores of Midterm 2 occupying the next row, scores of the Final Exam occupying the next row. The total of the 3 exams occupying the next row. Inform the instructor of the minimum total grade and the maximum total grade.

***and here is my code, got errors all over the place and not sure where to begin or iif im even in the ballpark

import java.util.Scanner; import java.io.*; public class Assign10_Roberts{ public static void main(String[] args){ //input Scanner Scanner input=new Scanner(System.in); int midTerm1=0; int midTerm2=0; int finalExam=0; int[][]grades= new int[10][10]; System.out.println("Enter the 10 Midterm 1 grades: "); for (int i = 0; i < grades.length; i++){ for (int j = 0; j < grades.length ; j++){ System.out.println("MidTerm1 Grades "+(i+1)+": "); grades[i][j]=input.nextInt(); } System.out.print("Enter the 10 Midterm 2 grades: "); for (int i = 0; i < grades.length; i++){ for (int j = 0; j < grades.length; j++) System.out.print("Midterm2 Grades "+(i+1)+": "); grades[i][j]=input.nextInt(); } System.out.print("Enter the 10 Final Exam grades: "); for (int i = 0; i < grades.length; i++){ for (int j = 0; j < grades.length; j++) System.out.print("Final Exam Grade "+(i+1)+": "); grades[i][j]=input.nextInt(); } for (int i=0;i<10;i++) grades[i]=midterm1[i]+midterm2[i]+finalExam int minGrade=grades[0]; int maxGrade=grades[0]; for (int i=1;i<10;i++) { if (minGrade>grades[i]) minGrade=grades[i]; if (maxGrade<grades[i]) maxGrade=grades[i]; } System.out.println("The minimum grade is "+minGrade); System.out.println("The maximum grade is "+maxGrade); } } }

also this is cross posted, thanks

help w/ storing/scanning numbers in two dimensional arrays - Java Forums