Question: Python coding only... TASK 1: In this assignment, you must develop a program based on incremental processes of collecting software requirements, designing, coding, testing, and
Python coding only...
TASK 1: In this assignment, you must develop a program based on incremental processes of collecting software requirements, designing, coding, testing, and debugging to manage a car park system. The program should work for a Car Park system. If the car rego is registered in the car park database, the driver should be welcomed, and the garage door opened. Whereas if the car rego is not on the list of registered cars, the driver should be advised to leave the carpark.
The following features of the Carpark system are to be incorporated in the design and implementation.
1. Build a database of registered cars using a file or any other data structure to store the details of the cars that are registered for the car park. You have to add rego and extra details according to your interest e.g. car owner Name, contact number, etc. (hint: build a class CarPark)
2. Prompt the user for input to the Carpark system. If a car has arrived, press 1, otherwise enter 0, and keep updating likewise.
3. Prompt the customer for their vehicle rego:
a. If the vehicle is unauthorized:
i. Display warning and do not allow access.
ii. Wait for 5 sec to allow the car to leave the car park
b. If the vehicle is registered:
i. Display Time/Date
ii. Open Garage
iii. Wait for 5 sec to allow the car to enter car park
TASK 2:
4. Incremental development: In a similar scenario, requirements for this carpark system have changed. The unauthorized vehicles are given an option to apply for registration if a slot is not registered for any vehicle. e.g. if there are 5 total slots and 2 are unregistered, then a new vehicle can apply for registration upon arrival. The information about the vehicle owner (Name, contact, etc.) and the vehicle rego has to be given. The CarPark DataBase will be updated subsequently. (Hint: add a new method registerNewSlot in class CarPark).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
