Write a GradeBook that tracks a total and a count, both starting at zero. record adds a score. average returns the total divided by the count as a double, or 0.0 when nothing has been recorded.
class GradeBook { GradeBook(); void record(int score); double average(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.