Question: Q 2 . Draw a design class diagram DCD like the example in the image A car rental system helps manage car renting services in
Q Draw a design class diagram DCD like the example in the image
A car rental system helps manage car renting services in which customers rent cars for a given
period, such that a customer can rent one car at a time. System admins should be able to periodically
report about the renting services or inquire about available cars for rent. The system needs to store
information about three things classes: customer, car, and rent, such that:
A Customer class has attributes for id firstName, lastName, email and phoneNlo.
A Car class has attributes for licenseNa make, model, year, airConditioning,
navigation, rentPrice, promotion, availableEorRent,
A Rent class has main attributes for rentSN, rentRate and noQfPavs.
As a software designer, you are required to draw a class diagram with navigation visibilities, the
data type and visibility of each attribute, as well as the visibility, parameters, and return type of
required methods, while considering the following requirements:
The three main classes mentioned above are included.
Several types of Cars as subclasses with additional attributes are included:
A SmallCar: fueltxpe, cylinderSpeed, isconvertable, and isRace,
A MediumCar: fuelTxpe, numberofDoors, trunkSize
A LargeCar: numberofSeats, wifi
Any car object should provide a method to show if the car is currently being rented.
The rent price is calculated based on the car type, such that the additional information
of each car type plus the promotion contributes to the rent price.
When the promotion value in Car is updated, it will be reflected in car objects of all
subclasses. Static attribute in Car class
Admins are able to to generate reports that show:
a Number of rented cars of all types during a specific month and year. Static
method in Rent class
b A list of all available cars with a navigation system feature at a specific date.
Static method in Car class
c A list of all available large cars at a specific date. Static method in LargeCar
class
Q Design the following software application as instructed. Marks
A car rental system helps manage car renting services in which customers rent cars for a given
period, such that a customer can rent one car at a time. System admins should be able to periodically
report about the renting services or inquire about available cars for rent. The system needs to store
information about three things classes: customer, car, and rent, such that:
A Customer class has attributes for id ficstName, lastName, email and phoneNa.
A Car class has attributes for licenseNa make, model, year, airConditioning,
navigation, rentRrice, promotion, availableEorRent.
A Rent class has main attributes for rentSd, centRate and nolflays.
As a software designer, you are required to draw a class diagram with navigation visibilities, the
data type and visibility of each attribute, as well as the visibility, parameters, and return type of
required methods, while considering the following requirements:
The three main classes mentioned above are included.
Several types of Cars as subclasses with additional attributes are included:
A SmallCar: fueltxpe, cylioderSpeed, isconvertable, and isRace,
A MediumCar: fuelTxpe, numberoffoors, trunkSize
A LargeCar: numberOfSeats, wifi
Any car object should provide a method to show if the car is currently being rented.
The rent price is calculated based on the car type, such that the additional information
of each car type plus the promotion contributes to the rent price.
When the promotion value in Car is updated, it will be reflected in car objects of all
subclasses. Static attribute in Car class
Admins are able to generate reports that show:
a Number of rented cars of all types during a specific month and year. Static
method in Rent class
b A list of all available cars with a navigation system feature at a specific date.
Static method in Car class
c A list of all available large cars at a specific date. Static method in LargeCar
class
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
