Skip to main content

Checkpoint: bank the easy parts first

Challenge on lesson: Checkpoint: bank in order

CHALLENGE
Difficulty: advanced+25 XP

The full three-behavior class ReadingSet (constructor stores the array): countCold() counts readings < 0.0; anyWarm() is true when any reading > 25.0; firstCold() returns the first reading < 0.0 or 999.0. **Strategy exercise**: implement them in banking order โ€” count, exists, first-match โ€” as if the clock were running.

Back to lesson: Checkpoint: bank in order