garage
This application manages a parking space for a configurable
maximum number of vehicles. The designed application must handle the following functions:
● Each garage slot has a width and depth that describes the slot dimensions.
● The garage consists of a configurable maximum number of slots with different dimensions.
● Each vehicle shall be identified by a model name, unique identification number, Model year and
vehicle dimensions (width and length).
● Park-in function that marks the arrival time of a vehicle if there is an available slot that matches
vehicle dimensions.
● The slot selection for vehicle park-in could be done using multiple
○ First Fit selection where the first slot with big enough dimension to host the vehicle will
be selected
○ Best Fit selection where the slot with the best dimension match should be used where
the wasting area of the slot is minimized.
● Slot selection algorithms could be extended in the future version of the application.
● Park-out function that marks the departure time of a vehicle
● Calculate the parking fees during the park-out based on the time-of-stay with an hourly rate that
depends on the slot dimensions i.e slot with width = 120cm and depth = 200cm could cost 10
EGP per hour. These costs should be configured during the slots configuration during application
startup
● Calculate the total income as well as the total number of vehicles that used the parking garage
at any given point in time.
● Display the available parking slots for specific vehicle dimensions.
draw class diagram for the following program

Step by step
Solved in 2 steps









