February 2014
Beginner
1248 pages
62h 25m
English
Figure 7.18 contains a GradeBook class that uses a two-dimensional array grades to store the grades of several students on multiple exams. Each row of the array represents a single student’s grades for the entire course, and each column represents the grades of all the students who took a particular exam. Class GradeBookTest (Fig. 7.19) passes the array as an argument to the GradeBook constructor. In this example, we use a ten-by-three array for ten students’ grades on three exams. Five methods perform array manipulations to process the grades. Each method is similar to its counterpart in the earlier one-dimensional array version of GradeBook (Fig. 7.14). Method getMinimum ...
Read now
Unlock full access