- #1
everdomdom
- 2
- 0
Homework Statement
A car park has 5 parking slots. When the fifth car enter the car park, a red light notification will turn on indicate the car park is full.
When the car park cars decrease from 5 to 4, the red light is distinguished.
Homework Equations
The Attempt at a Solution
I set the counter to 5, but it's not working.
The lamp will only turn on when there is the sixth car entered.
Help guys! Please refer to the attached picture