-
The parking lot has 3 levels.
-
Each level has 2 sections, each section has 15 spots.
-
A single spot can accommodate a Motorcycle, Car or a Bus/Truck.
a. The type of vehicle a spot can accommodate is predefined.
b. Level 1 can accommodate only Trucks/Buses.
c. Level 2 and 3 can accommodate only Cars and Motorcycles.
d. A parking spot can only accommodate one type of vehicle.
- There is only one entry to the parking lot.
- The input are case-sensitive so please follow the input format
- Each vehicle has its unique vehicle number:
For example Car KK45 and Truck KK45 cannot co-exist
If same vehicle number being input, "Vehicle Exist" will shown to the screen - In each floor, there are two sections but not shown on the screen according to the requirements.
They are included in the code. - The spots are numbered as 1 to 30 on each floor with the incremental distance:
i.e., 1 is the nearest, 30 is the farthest
The vehicle prefers going 2-30 rather than 3-1
Python 3.8.3 (with := operator)
You can have two types of inputs:
-
Entry: Input: ENTRY Car TS07EH3768 Output: Please proceed to Level 2, Spot 5
-
Exit Input: EXIT TS07EH3768 Output: Level 2, Spot 5 is now available