0
/ 50
Consider already having a class called gradebook
that manages a student's grades for a class, but you want to define the following member...
Consider already having a class called gradebook
that manages a student's grades for a class, but you want to define the following member function for it:
double getAverage(); // returns the average of all the current grades
void addGrade(double grade); // adds a new grade into the gradebook
Complete the following function by: (1) creating a new gradebook, (2) adding the scores 80
and 95
to it, and (3) returning what averageGrade
calculates.
Your feedback will appear here when you check your answer.