Computer Science Designing a Software Application

Question # 00650925
Subject: Computer Science
Due on: 12/04/2023
Posted On: 12/03/2023 11:58 PM
Tutorials: 1
Rating:
4.9/5
Question Dot Image

Computer Science Designing a Software Application Question

Q. Design the following software application as instructed. (6 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, firstName, lastName, email and phoneNo.

A Car class has attributes for licenseNo, make, model, year, airConditioning, rentPrice, promotion, availableForRent.

A Rent class has main attributes for rentSN, rentDate and noOfDays.

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:

1. The three main classes mentioned above are included.

2. Several types of Cars as subclasses with additional attributes are included:

A SmallCar: fuelType, cylinderSpeed, isConvertable, and isRace

A MediumCar: fuelType, numberOfDoors, trunkSize

A LargeCar: numberOfSeats, wifi

3. Any car object should provide a method to show if the car is currently being rented.

4. 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.

 5. When the promotion value in Car is updated, it will be reflected in car objects of all subclasses. (Static attribute in Car class) 6. Admins are able to generate reports that show:

a) Number of rented cars of all types during a specific date range (startDate, endDate). (Static method in Rent class)

b) A list of all available cars with air conditioning at a specific date. (Static method in Car class ?)

c) A list of all available small race cars at a specific date. (Static method in SmallCar class) My comments on each part:

1) - All attribute should be private - Add navigation visibilities - One-to-Many from Customer to Rent - One-to-One from Rent to Car 2) Sub classes with attributes

3) isAvailableForRent: A method in Car class returns availableForRent. If false, not available for rent.

4) getRentPrice: A method in each car sub-class that calculates rentPrice (based on extra attribute) and returns it.

5) promotion in Car class is a static attribute.

6)

a. numberOfRentedCars: A static method in Rent class takes startDate and endDate and returns number of Rent classes with rentDate falling within the range.

b. listOfAvailableAirConditionedCars: A static method in Car class that returns an array of cars with aircondition and availableForRent.

c. listOfAvailableRaceSamllCar: A static method in SmallCar class that returns an array of cars if isRace and availableForRent.

Dot Image
Getsolution Posted By :
Questions: 14076 Tutorials: 14076
Tutorials for this Question

Computer Science Designing a Software Application

Tutorial # 00649810
Posted On: 12/03/2023 11:59 PM
Feedback Score: Not rated yet!
Purchased By: 2
Getsolution
Posted By:
Questions:
14076
Tutorials:
14076
Report this Tutorial as Inappropriate
Tutorial Preview
The solution of Computer Science Designing a Software Application...
Attachments
Computer_Science_Designing_a_Software_Application.ZIP (18.96 KB)

Great! We have found the solution of this question!

Related Questions
IT513-15 - Explain how PDF ensures consistency in document
IT-513-15 Enterprise IT Application and Business Analytics Question A Question 1: Explain how PDF ensures consistency in document output across different types of devices, including printers and …
IT513-15 Part A,B - Storage Hierarchy and Secondary
IT-513-15 Enterprise IT Application and Business Analytics Part A : 1. Question: Storage Hierarchy and Secondary Storage Devices Explain the concept of storage hierarchy in computer systems, an …
IT513-15 Part A,B - Describe the main components of a computer
IT-513-15 Enterprise IT Application and Business Analytics PART-A QUESTION-1 Describe the main components of a computer and their respective functions. Explain the roles of the central proc …
IT513-15 Enterprise IT Application and Business Analytics
IT-513-15 Enterprise IT Application and Business Analytics PART-A The National Prosperity Bank ( NPB) has decided to connect all of its stores in the US. This will allow the bank to improve its …
CSE 545 Software Security Assignment plus final exam
I need help with CSE 545 Software Security Assignment plus final exam …
Data usage and systems - The organization of data into usable
Data usage and systems The organization of data into usable information within a health care setting is a core focus of health care information technology. Information, however, is not enough to ma …
INFS3440 Data Type Summary - You have recently expressed
INFS3440 Data Type Summary You have recently expressed interest in working in health IT in a health system. To improve your familiarity with the data you may encounter, the IT manager has asked …
Falcon Security Case Presentation - For decades, relational databases
Colorado State University Falcon Security Case Presentation For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and reposit …
CY520 Cyber Security Social Engineering Discussion
CY 520 College of Wilmington Cyber Security Social Engineering Discussion Original responses should not be a word for word rehashing of what is stated in the readings, but rather an integration of …
Security and Incident Response - You are the newly hired Chief Technology
Security and Incident Response You are the newly hired Chief Technology Officer at a small marketing firm that employs 25 people. The firm’s CEO has asked you to prepare a report that include …
Recent Questions
Project management assignment
  Over the past few weeks, we have learned how to develop the project scope, schedule, and cost baselines. While these are useful exercises, it is important for a pro …
JSM Staffing Services Marketing Plan Paper
Strayer University JSM Staffing Services Marketing Plan Paper Assignment 1: Part A: Your Marketing Plan For this assignment, you will document your hypothetical company’s backgro …
The marketing of services is ever increasing and has
Auburn University Marketing of Tangible Products and Services PAper The marketing of services is ever increasing and has specific differences when compared to the marketing of tangible products. Co …
What are the similarities and differences between the product,
Tarleton State Differences Between Amazon.Com and Big Mac Product Life Cycles Discussion 1. What are the similarities and differences between the product, Big Mac, and retail, Amazon.Com, …
Carmex has been making lip balm since 1937. Nevertheless
Tarleton State University Carmex Marketing Study Case Paper Carmex has been making lip balm since 1937. Nevertheless, in the last five years, it has stressed growth and become more competitive. Dur …
Customers Satisfaction Discussion - Customer satisfaction surveys
UOPX Customers Satisfaction Discussion Customer satisfaction surveys are everywhere, but do they measure loyalty? Review the "Building, Measuring, and Profiting from Customer Loyalty" art …
Wang Tao on Reform Discussion - What arguments did
Read the selection “Wang Tao on Reform.” What arguments did Wang Tao use in his efforts to persuade readers to accept his point of view? Would China’s leaders today find Wang Tao&rsq …
Origins and Aims of Labor Movement & Socialist Politics
San Diego State University Origins and Aims of Labor Movement & Socialist Politics Select any four questions of your choice listed below. Make sure you answer all parts of the question. Minimum …
Part 1,2,3,4,5 -Two political ideologies took center
Part 1 (chapters 1-2): Choose one of the following 3 questions and write a detailed response to it in canvas. Your answer is worth a possible 20 points. (1) Two political ideologies took center sta …
Ethical Decision of Bombing the cities of Hiroshima and Nagasaki Paper
Ethical Decision of Bombing the cities of Hiroshima and Nagasaki Paper On August 6 and 9, 1945, American aircraft dropped atomic bombs on Japan. In 600-1000 words, explain why the decision was made …