Question

In: Electrical Engineering

Car Rental Management System in C++ The aim of this project is to design and implement...

Car Rental Management System in C++

The aim of this project is to design and implement a computerized Car Rental Management System for a company called COEN244Cars.

The company rents two types of cars: standard and luxury cars. A car is identified by a car identification number (int), a type (string), and a flag that indicates whether the car is currently available or not. The company distinguishes between three types of customers: regular customers, corporate customers, and VIPs (Very Important Persons). A customer is identified by a customer number (int), name (string), address (string), and a telephone number (string). A corporate customer has the following additional attributes: The name (string) and address of the customer’s company (string). Furthermore, the customers have different types of privileges. A regular customer can only rent standard cars for a maximum period of 20 days. Corporate customers and VIPs can rent all types of cars. However, corporate customers can rent a car for a maximum period of 35 days, whereas VIPs can rent a car for a maximum period of 45 days. Using your system, the COEN244Car company should be able to do the following tasks:

a) Add a new car to the inventory

b) Remove an existing car from the inventory

c) Register new customers

d) Remove a given customer from the customer’s list

e) Rent a car to a customer

f) Return a car and update car information

g) Return the privileges of a particular customer.

h) Change the privileges (e.g., modify the rental period for regular customers to 25).

i) Determine whether a given car is rented or not

j) Determine whether a given customer has rented a car

k) Determine whether a given car is a regular customer, corporate, or VIP.

l) Determine the types of cars rented by a customer of a given company.

Question 1

A. Implement the class or classes that represent the car information.

B. Implement the class or classes that represent the company’s customers.

C. Implement the class CarRentalManagement that supports the functions (a) to (l)

Notes: Provide all the necessary data members, constructors, copy constructors, destructors, and member functions.

Include the run result.

Solutions

Expert Solution

PROGRAM:

One structure has to be created with name rentalTrack

Struct rentalTrack

{

char typeOfCustomer; // regular - r, corporate - c and VIP - v

int carIdNum; // Car identification number

char typeOfCar; // luxury - l or standard cars - s

int custNum; // Customer identification number

string issuedDate, returnDate ; // date to calculate

int maxPeriod; //maxperiod a car can be rented;

}

To Calculate return/due date we can use a function

String dueDate(rentalTrack)

{

returnDate=issueDate+maxPeriod;

return returnDate;

}

After the returnDate which we got from dueDate we can compare it with current date for that we can use one function

int compareDate(String date)

{

if(currrentDate>date)

{

daysOverdue = currentDate-date

return daysOverdue //this will be always +ve value so, we can determine that due crossed

}else{

daysLeftdue = currentDate-date

return daysOverdue //this will be always -ve value so, we can determine that due is left with the customer

}

}


Related Solutions

C++ Question The aim of this assignment is to design and implement a computerized “Library Management...
C++ Question The aim of this assignment is to design and implement a computerized “Library Management System”. The system will be used in the back-office to manage the books in the library catalog and to keep track of the various users (borrowers) of the library. The system provides the following key functionalities: Books are characterized by a call number, a title, and a flag that indicates whether the book is currently ‘on-shelf’ (in the library) or ‘on-loan’. -Adding and removing...
Implementation of a Payroll Management System Introduction Payroll management system project in C++ is a console...
Implementation of a Payroll Management System Introduction Payroll management system project in C++ is a console application with the use of Object Oriented Programming with graphics. The project has multiple classes and sub-classes with many features within them. Basic operations: users can perform via this program project that are based on file handling are adding new employee record, modifying employee record and deleting record, displaying one or all employee’s record. Besides these, payroll management also allows users to print the...
Revenue Management saves the business: the case of the National Car Rental The story:​ National Rental...
Revenue Management saves the business: the case of the National Car Rental The story:​ National Rental Car faced disastrous possibilities. In 1993, General Motors had considered liquidating or selling the unprofitable business. National and their 7500 employees had just one chance. They had to make the business profitable and prove that the car rental business was worth saving. National quickly brought in the help of specialists to assess the situation, understand the business and quantify revenue potential. Using the information...
Design a PLC ladder logic program to implement an automatic Car-Wash process. The system should have...
Design a PLC ladder logic program to implement an automatic Car-Wash process. The system should have a start and stop pushbuttons. When a Car enters the washing skid, a load cell switch is activated and the following sequence is performed automatically: 1. Soaping for (20) sec through soap nozzles 2. Washing for (120) sec using big brushes 3. Rinsing for (60) sec using water nozzles 4. Drying for (40) sec using air nozzles After finishing this process, the washing skid...
Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90...
Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90 of the task, with about 10% effort in coding. The code needs to be compile-able, but does not need to execute. A main() method with no code is appropriate. Think about what a car rental transaction requires. At minimum, you need the following items below. You are free to add more if it makes sense to you. A renter. A vehicle to rent. A...
Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90...
Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90 of the task, with about 10% effort in coding. The code needs to be compile-able, but does not need to execute. A main() method with no code is appropriate. Think about what a car rental transaction requires. At minimum, you need the following items below. You are free to add more if it makes sense to you. A renter. A vehicle to rent. A...
hii there .. i was thinking of making project in C++ on topic payroll management system...
hii there .. i was thinking of making project in C++ on topic payroll management system .. what can be included in that ? wht are main aspects of this topic ?? thankx
respond to the following , building upon business plan of rental car .What areas of management...
respond to the following , building upon business plan of rental car .What areas of management will be most important in your business? Will these change over time? . What basic management skills will be most important to your business? Will these change over time? . What are the specific business goals of your new venture? . For your venture, is there a difference between your corporate and business strategies? . Does your management team need to develop any contingency...
In C++, Design and implement an ADT that represents a triangle. The data for the ADT...
In C++, Design and implement an ADT that represents a triangle. The data for the ADT should include the three sides of the triangle but could also include the triangle’s three angles. This data should be in the private section of the class that implements the ADT. Include at least two initialization operations: one that provides default values for the ADT’s data, and another that sets this data to client-supplied values. These operations are the class’s constructors. The ADT also...
The management of a tertiary institution in Ghana has contacted you to design and implement an...
The management of a tertiary institution in Ghana has contacted you to design and implement an ERP system for handling their internal workflows. Among other things the system should focus on student records, students’ fees management, students’ assessment, human resource functions, and payroll management. Following from this preamble, answer the question that follow. a. What is an ERP system? 2 Marks b. In not more than a page, describe how you would go about building the requested system focusing on...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT