Overview of Class GradeBook’s Functions

Five member functions (declared in lines 24–28 of Fig. 7.22) perform array manipulations to process the grades. Each of these member functions is similar to its counterpart in the earlier one-dimensional array version of class GradeBook (Figs. 7.157.16). Member function getMinimum (defined in lines 54–71 of Fig. 7.23) determines the lowest grade of all students for the semester. Member function getMaximum (defined in lines 74–91 of Fig. 7.23) determines the highest grade of all students for the semester. Member function getAverage (lines 94–104 of Fig. 7.23) determines a particular student’s semester average. Member function outputBarChart (lines 107–137 of Fig. 7.23) outputs a bar chart of the distribution of all student grades for the semester. Member function outputGrades (lines 140–165 of Fig. 7.23) outputs the two-dimensional array in a tabular format, along with each student’s semester average.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.169