Member Function getAverage

Member function processGrades next calls member function getAverage (line 45) to obtain the average of the grades. Member function getAverage (declared in line 23 of Fig. 7.15 and defined in lines 88–98 of Fig. 7.16) totals the values in array grades before calculating the average. The averaging calculation in line 97 uses grades.size() to determine the number of grades being averaged.

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

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