QUESTION 1 [30 MARKS] Pacific Advances Services Car (PASCar) rental company wishes to update its computer system based o
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 1 [30 MARKS] Pacific Advances Services Car (PASCar) rental company wishes to update its computer system based o
QUESTION 1 [30 MARKS] Pacific Advances Services Car (PASCar) rental company wishes to update its computer system based on class diagram in Figure 1. PASCar_App + main(arg[] String): void Car Model Persona Civic Kancil Vehicle #rentalPeriod: int #earlyDropOff: boolean #lateDropOff: int #cust: Customer -model: String + Car( "to be complete) + carPriceRate(): double +totalRentalAmount(): double +Vehicle( "to be complete) totalRentalAmount(): double +lateReturningFee(): double + cashRebate(): double + getCustomerName(): String Table 1 Rental Rate Per Day Customers can choose the from fleet of vehicles offer by PASCar for rental. Rental period is based on days and the price rate for each Car model is shown in Table 1. SUV price rate will be based on the seat number, and the price rate for SUV can be referred in Table 2. RM 80.00 RM 65.00 RM 50.00 Figure 1 Customer -firstName: String -lastName: String + Customer (firstName: String. lastName: String) SUV -numOfSeat: int + SUV( ""to be complete) + suvPriceRate(): double + totalRentalAmount(): double Number of Seats Five (5) Seven (7) Table 2 Rental Rate Per Day RM 100.00 RM 130.00 The late returning fee is recorded if the customer drop-off or return their rented vehicle later than the rented period. Lateness fee is charge based on how many hours the customer was due to return the vehicle. The late returning fee rate is shown in Table 3, but if the customer drop-off the vehicle early than the rental period, RM 10.00 cash rebate will be awarded.