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 ...

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.