console based application for parking.
create_parking_lot
park
leave
status
registration_numbers_for_cars_with_colour
slot_numbers_for_cars_with_colour
slot_number_for_registration_number
-
create_parking_lot
command can be used to create a parking lot. We can specify the parking lot size by passing a number(size) in first argument
e.g.// size of parking lot = 10 create_parking_lot 10
-
park
command can be used to allocate a parking space to a vehicle.
e.g.// park [REG_NO] [COLOR] park KA-01-HH-2701 Blue
-
leave
command can be used to pull out a vehicle from parking lot.
e.g.// leave [SPOT_NO] leave 4
-
status
command will show the status of parking lotstatus Slot No. Registration No Colour 1 KA-01-HH-2701 Red 2 KA-01-HH-2702 Green 3 KA-01-HH-2703 Blue
-
To display the registration number of car(s) with a specific color.
registration_numbers_for_cars_with_colour Blue KA-01-HH-1234, KA-01-HH-9999