Figure 7.14 shows the output that summarizes the 10 grades we store in an object of the next version of class
GradeBook (Figs. 7.15–7.16), which uses an
array of integers to store the grades of 10 students for a single exam. This eliminates the need to repeatedly input the same set of grades.
array grades is declared as a data member in line 28 of Fig. 7.15—therefore, each
GradeBook object maintains its own set of grades.
Welcome to the grade book forCS101 Introduction to C++ Programming!The grades are:Student 1: 87Student 2: 68Student 3: 94Student 4: 100Student 5: 83Student 6: 78Student 7: 85Student 8: 91Student 9: 76Student 10: 87Class average ...