Skip to main content

Checkpoint: the reading log

Challenge on lesson: Checkpoint: the reading log

CHALLENGE
Difficulty: beginner+25 XP

Complete the Log class: record(int reading) stores one reading; average() returns the average of all recorded readings (integer division), or 0 when nothing was recorded. getCount() is provided.

Back to lesson: Checkpoint: the reading log