Apply the Java concepts that you learned (OOP, polymorphism, interfaces, packaging, …) as well as SOLID design principles to design/extend a Parking Garage application and implement it using the Java/C++ programming language. 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 algorithms: ○ 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. ● Enrich your application with the capability to handle a set of exceptions that can happen during user interaction and through any other calculations. The displayed error message for exceptional behavior should be descriptive.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Apply the Java concepts that you learned (OOP, polymorphism, interfaces, packaging, …) as well as
SOLID design principles to design/extend a Parking Garage application and implement it using the
Java/C++ programming language. 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 algorithms:
○ 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.
● Enrich your application with the capability to handle a set of exceptions that can happen during
user interaction and through any other calculations. The displayed error message for exceptional
behavior should be descriptive.

Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT