PROJECT TITLE: Carpark System
PURPOSE OF PROJECT: Project 2 for Object Oriented Programming module
VERSION or DATE: 15 May 2024
HOW TO START THIS PROJECT: Ensure you have Java 21 installed. Run the CarparkSystem java file.
AUTHORS: Abdurrahman Faqih Bin Iskandar 104675143
Java 21.
Add a new parking spot in car park.
Click on add parking spot button. Enter ID for new parking spot.
Parking spot ID must be an uppercase letter followed by 3 digits.
Delete parking spot from car park.
Click on delete parking spot button. Enter ID of parking spot to delete.
Parking spot ID must be an uppercase letter followed by 3 digits.
Parking spot with entered ID must exist.
Parking spot with entered ID must not be occupied.
Summary of car park and lists details of each parking spot in car park.
Click on list parking spots button.
Parks a car in an unoccupied spot in the car park.
Click on park a car button. Enter ID of parking spot and car details.
Parking spot ID must be an uppercase letter followed by 3 digits.
Parking spot with entered ID must exist.
Parking spot with entered ID must not be occupied.
Car registration number must be an uppercase letter followed by 4 digits.
Car make and model must not be empty.
Car year must be between 2004 and 2024 inclusive.
Car must not already be parked in another parking spot.
Finds a car in the car park by registration number.
Click on find car by reg number. Enter registration number of car to find.
Car registration number must be an uppercase letter followed by 4 digits.
Shows "Not found" if car is not found
Removes a car in the car park by registration number.
Click on remove car by reg number. Enter registration number of car to find.
Car registration number must be an uppercase letter followed by 4 digits.
Car must already be parked in car park.
Finds all cars with the entered make.
Click on find car by make. Enter make of car(s) to find.
Car make must not be empty.
Shows "Not found" if no car is found.
Resets car park by removing all parked cars.
Click on reset carpark button.
Exits application and closes window.
Click on exit program button.