Question
The 24/7 parking garage is operated without any computerized system. In order to maximize the profit, the owner of the garage hires you to develop
The 24/7 parking garage is operated without any computerized system. In order to maximize the profit, the owner of the garage hires you to develop a computer system to help manage the parking garage so that drivers can find and reserve available parking places.
1. There are in total 20 parking spaces
2. Each parking space has three states: available, reserved, or occupied
3. A driver may reserve a parking space by specifying a time slot
4. The driver may modify their existing reservation(s) before the starting time of a particular reservation.
5. A driver may extend their current occupancy of a parking space as long as it is before the end of the reservation.
Assume that you only implement a one-day (24-hour) parking lot reservation. The time each customer reserve a parking spot is in multiples of 1 hour (e.g. 1 hour, 2 hours, 3 hours. Not 1.5 hours, 2.75 hours).
Your program will ask the customer the current time, and show the current states of all 20 parking spots. The customer may reserve an available parking spot and specify the time slot.
Java Implementation please, thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started