Overview

You are required to design and develop a small Java console application. Completion of this assignment requires an understanding of:

  • Analysis and design techniques, including development of use cases and UML diagrams - specifically, use case diagrams, class diagrams and sequence diagrams
  • Object-oriented programming, focusing on polymorphism and the use of interfaces

Assessment Details

FedCR is a car hire company that offers vehicle rentals to its clients. Clients are able to hire vehicles according to availability and preference. FedCR offers 10% loyalty discount on the rental fees to members of its loyalty club. No discount is offered to standard clients who are not members of the loyalty club. A special discount of 20%, is offered to clients who are also employees of the company.

You have been hired to design and develop a Java application for FedCR employees to manage the car rental system. The application should have an interactive menu, allowing the user to select the type of client (standard, loyalty member or staff member) making the booking and determine and track the appropriate discounts.

The menu should also provide different other options, such as, displaying clients list, generating a report to display the current payments received, and quitting the execution. In the report the payments should be broken down into different categories of bookings such as standard, loyalty and staff, and the total discounts given in each category (using the discounted values where appropriate). At this stage there is no need for data to persist once the program finishes execution.

FedCR wants the system to be flexible so that users can include additional functionality at a later date without having to rewrite the entire program. This means you will need to use an interface for processing payments, and polymorphism for the various payment classes, so that new, different payment types may be added at a later date with minimal updates to the code.

FedCR asked that you provide it with some documentation before you commence coding, so that the manager is able to verify that the program you intend to code will address the business requirements. The manager would like to see use cases that summarizes the requirements in written format, as well as use case diagrams, class diagrams and sequence diagrams.

Start-up code (A1_BaseCode.zip) is provided for your convenience. You are free to use, update and build your program on this. A sample expected output of an execution of a complete program is also attached. Notice in the sample output clients 1, 2, and 3 are hard coded in the program; clients 4, 5, and 6 are entered at execution. Similarly, your program should include hard coded clients, at least one client in each category.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.