Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint: exam #1 FRQ

โญโญโญ advancedโณ 25 min read๐Ÿ“ Lesson 244 of 256

The toll booth: payment, shortfall, day total, and the reset rule.

Four behaviors, one class, one reset rule โ€” the FRQ2 shape at simulation weight. Bank pay() and shortfall() first (mirror images), then the collection accumulator, then endDay's read-and-reset. The mirror-image pair is the speedup: write one, write the other by symmetry, and check both against zero.