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: 15154 Tutorials: 15153
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:
15154
Tutorials:
15153
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
Examine the several different types of data insights that occur
Question Examine the several different types of data insights that occur in big data analytics:  ? Offer novel knowledge  ? Provide causation relationships  ? Add a competit …
Computer science - Is virtualisation cost effective
Computer science question Is virtualisation cost effective and does it support green IT? Contents Introduction Is Virtualisation cost effective? Running out of space? Needing Virtualisa …
Studying Computing involves developing both subject
Studying Computing involves developing both subject-specific and transferable skills. Describe the skills you have used prior to university, and discuss how you would expect those skills to develop wh …
Computer Science - Discuss the critical characteristics
Computer Science Question Assignment 1 - Question 1: Discuss the critical characteristics of communication channels in data communications. Explain how bandwidth and communication medium affe …
List and explain two browser add-ons(plug-ins)that improve the security
1- List and explain two browser add-ons(plug-ins)that improve the security of a user’s browser. Why are these features not built-into the browser? 2- What are two security risks associated wi …
How are browsers being used to mine crypto currency
Part A: How are browsers being used to mine crypto currency? (1 pt) Find an example of malvertising. Provide a screen shot of the malvertising. (2 pts) Provide the details on how and where you …
What are the seven categories of cybersecurity functions in the NICE
security awareness What are the seven categories of cybersecurity functions in the NICE Cybersecurity Workforce Framework (https://www.nist.gov/itl/applied-cybersecurity/nice/resources/nice-cybe …
The Computer Mouse - Once a nondescript box perched on a large
The Computer Mouse Once a nondescript box perched on a large ball bearing, today the computer mouse comes in a wide range of shapes with a variety of capabilities. There are cordless mice, ergonomi …
CMSC350 Program that accepts an arithmetic expression
CMSC350 Program that accepts an arithmetic expression The second programming project involves writing a program that accepts an arithmetic expression of unsigned integers in postfix notation and bu …
Week 6 Discussions - Local Security Good Practices
Week 6 Discussions Please respond to at least two main topics  1. Local Security Good Practices Discuss in detail several effective local security practices to harden your Linux distribu …
Recent Questions
Walden NURS4210/NURS4211 All Assignments Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Assignment WINDSHIELD SURVEY/COMMUNITY ASSESSMENT RESOURCES Be sure to review the Learning Resources before com …
Walden NURS4210/NURS4211 Week 6 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 6 Assignment ASSIGNMENT RESOURCES Be sure to review the Learning Resources before completing this activity. Cl …
Walden NURS4210/NURS4211 Week 5 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 5 Assignment DISASTER PLANNING FOR PUBLIC HEALTH-2 RESOURCES Be sure to review the Learning Resources before comp …
Walden NURS4210/NURS4211 Week 3 Assignment Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Assignment WINDSHIELD SURVEY/COMMUNITY ASSESSMENT RESOURCES Be sure to review the Learning Resources before com …
Walden NURS4210/NURS4211 All Weeks Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 1 Practicum Role of the Nurse Leader in Population Health - Group A  PRACTICUM LEARNING OBJECTIVES Dev …
Walden NURS4210/NURS4211 Week 6 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 6 Practicum PRESENTATIONS Overview: This week, you will present your PowerPoint presentation to the class incorpora …
Walden NURS4210/NURS4211 Week 5 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 5 Practicum PRESENT YOUR POWERPOINT PRESENTATION TO YOUR COMMUNITY MEMBERS This week, you will be presenting your p …
Walden NURS4210/NURS4211 Week 4 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 4 Practicum EVIDENCE-BASED PRACTICE AND EVALUATION OF THE PROJECT THROUGH MEASURABLE GOALS Overview: Dr. Marci …
Walden NURS4210/NURS4211 Week 3 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 3 Practicum POPULATION CULTURAL CONSIDERATIONS AND GENETIC PREDISPOSITIONS Overview: This week, you will ident …
Walden NURS4210/NURS4211 Week 2 Practicum Latest 2024
NURS-4210W-13/NURS-4211-13  Role of the Nurse Leader-Summer 2024 Week 2 Practicum Role of the Nurse Leader in Population Health - Group A Back to Week at a Glance EPIDEMIOLOGY: …