January 2014
Intermediate to advanced
736 pages
70h 43m
English
Class GradeBookTest (Fig. C.18) creates a GradeBook object (lines 10–11). Line 13 invokes the object’s displayMessage method to output a welcome message to the user. Line 14 invokes the object’s inputGrades method to read a set of grades from the user and keep track of the sum of all the grades entered and the number of grades. Recall that method inputGrades also calls method incrementLetterGradeCounter to keep track of the number of students who received each letter grade. Line 15 invokes method displayGradeReport of class GradeBook, which outputs a report based on the grades entered (as in the input/output window in Fig. C.18). Line 103 of class GradeBook (Fig. C.17) determines whether the ...
Read now
Unlock full access