Program exercise · Hard · Ladder · 15 min · Free
Cars in, cars out
Track the cars in a 20-space car park with an entry sensor and an exit sensor, and light Full when every space is taken.
Opens the exercise in the FORGE workspace. Sign in to have your result checked and earn 220 XP.
How it is checked.
- Entry counts up and exit counts down
- Full lights at 20 cars
- The count never goes below 0
Part of Counters. All practice exercises.