/Squad-Parking

Squad parking task

Primary LanguagePython

SquadVoice Parking Lot Task

Problem Statement

Creating a Object Oriented Parking Lot.

Technology Used

  1. Python 3.x
  2. PyCharm IDE
  3. Terminal

Build Instructions

python Main.py <input.txt>

Output Format

Input

Terminal : python Main.py input.txt

input.txt contains:

Create_parking_lot 6
Park KA-01-HH-1234 driver_age 21
Park PB-01-HH-1234 driver_age 21
Slot_numbers_for_driver_of_age 21
Park PB-01-TG-2341 driver_age 40
Slot_number_for_car_with_number PB-01-HH-1234
Leave 2
Park HR-29-TG-3098 driver_age 39
Vehicle_registration_number_for_driver_of_age 18

Output

Created a parking lot with 6 slots
Car with vehicle registration KA-01-HH-1234 has been parked at slot number 1
Car with vehicle registration PB-01-HH-1234 has been parked at slot number 2
Slot Numbers with Driver's age of 21 are :
1, 2
Car with vehicle registration PB-01-TG-2341 has been parked at slot number 3
Slot Number is: 2
Slot number 2 is free
Car with vehicle registration HR-29-TG-3098 has been parked at slot number 2
Vehicle Registration Number with Driver's age of 18 are :