Skip to main content

Checkpoint: full FRQ, timed

Challenge on lesson: Checkpoint: the full class

CHALLENGE
Difficulty: advanced+25 XP

The complete weather FRQ in one class: WarmWeek with - field private double[] readings; - constructor storing the array - public int coldHours() โ€” count of readings < 0.0 - public boolean hasWarmDay() โ€” true if any reading > 25.0 - public double firstBelow() โ€” the FIRST reading below 0.0, or 999.0 if none Implement the full class.

Back to lesson: Checkpoint: the full class