|
// Program: ArrayTest2
import HMC.HMCSupport;
class ArrayTest2 {
public static void main(String args[]) {
int[][] examGrades = {{90,75,88,69,72,55,75,92,84,77},
{88,69,72,90,75,88,92,84,77},
{72,90,75,88,69,92,84,77,69,72}};
// HMCSupport.out.println("The array before the test:");
// print_array(examGrades);
// HMCSupport.out.println("The second exam average: "
// + averageOfExam(examGrades,1));
// HMCSupport.out.println("The second students average: "
// + averageOfStudent(examGrades,1));
// HMCSupport.out.println("The highest grade on the second exam: "
// + highestOnExam(examGrades,1));
// HMCSupport.out.println("The average of all the grades: "
// + averageOverall(examGrades));
// int[] s2 = copyStudent(examGrades,1));
// s2[1]++;
// HMCSupport.out.println("The second students grades: "
// + s2[0] + " " + s2[1] + " " + s2[2]);
// HMCSupport.out.println("The array after the tests:");
// print_array(examGrades);
}
// Insert your methods here
}
|
This page copyright ©1998 by Joshua S. Hodas. It was built with Frontier on a Macintosh . Last rebuilt on Thu, Nov 12, 1998 at 9:06:54 AM. | |
http://www.cs.hmc.edu/~hodas/courses/cs5/week_10/lab.html | |