The program will simulate the entry and exit of vehicles to a parking lot that has 3 spaces..... When starting, a label will indicate that the parking lot is empty. When a car is detected by a sensor (use a button), a LED will light up indicating that a car arrived, once in position, the driver will press a button that will allow the boom to be raised (move a servomotor) to enter the parking lot (indicate with another LED the status of the pen), when entering, another sensor will detect the car (indicate by a third LED), when this sensor stops detecting the car, the pen will close the step and on the same label a message will be displayed indicating that there are still two spaces available. Repeat the sequence for a second car, it will show on the label that there is still a space available. When the third car arrives, and enters the parking lot, the message to be displayed will be that the parking lot is full. Once the parking lot is full and another car is attempted, nothing should happen until one of the cars leaves. The process will be the same at the time of leaving any of the cars. Similarly, if the parking lot is empty and an attempt is made to simulate the exit of a vehicle, nothing should happen. Consider that the parking lot does not have to be full for a car to exit, they can enter or exit regardless of how many cars are in the parking lot.
only basic structures
while
for
case
and use just basi functions..enum,comparison and select options
it took me 3 hrs to do that.