Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Build the following code in basic C++/OOP, using CLASSES and INHERITANCE , Thank you ! NOTE : FOR SAMPLE CHECK BELOW : SAMPLE QUESTION :

image text in transcribed

Build the following code in basic C++/OOP, using CLASSES and INHERITANCE , Thank you ! NOTE : FOR SAMPLE CHECK BELOW : SAMPLE QUESTION : Task 2: Create a class Person with data members name, age , Phone # & address. From this class derive two classes: Employee, which adds Emp. Id, Date of joining, Salary and Student which adds Student ID, Semester, No. of subjects, CGPA. Each of these three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the Employee and Student classes by creating instances of them, asking the user to fill in data with getdata(), and then displaying the data with putdata(). SAMPLE SOLUTION : #include

using namespace std; class person { string name,adress; int age,phno; public: void getdata() { cout>name; cout>adress; cout>age; cout>phno; } void putdata() { cout>d; cout>m; cout>y; cout>salary; } void putdata1() { cout>stdid; cout>semester; cout>nosub; cout>cgpa; } void putdata1() { cout  Design a program which can implement a car rental management system, all the specifics of different cars, their models, their prices should be incorporated. In addition, the program must store credentials of a customer, whether he/she is an old customer or not? Whether a security deposit is required or some kind of verification is required or not. We can also apply certain discounts for repeating customer, discounts may also be offered if the rental agreement is for more than a specified number of days. In case of an accident, proper information must be entered in system against that customer which should be part of his/her record for future. Number of miles/km allocated per car, per day must be entered, if a car is going extra miles, user must be charged accordingly, if a car is going out of city, this permission should be granted at the time of booking. Maintain complete record of all cars and all customers, the program should also maintain service history of each vehicle and should intimate when any kind of maintenance is required. At the end the program should report actual revenue earned. Design a program which can implement a car rental management system, all the specifics of different cars, their models, their prices should be incorporated. In addition, the program must store credentials of a customer, whether he/she is an old customer or not? Whether a security deposit is required or some kind of verification is required or not. We can also apply certain discounts for repeating customer, discounts may also be offered if the rental agreement is for more than a specified number of days. In case of an accident, proper information must be entered in system against that customer which should be part of his/her record for future. Number of miles/km allocated per car, per day must be entered, if a car is going extra miles, user must be charged accordingly, if a car is going out of city, this permission should be granted at the time of booking. Maintain complete record of all cars and all customers, the program should also maintain service history of each vehicle and should intimate when any kind of maintenance is required. At the end the program should report actual revenue earned

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

1. How does Kiwi Experience maintain a continual customer focus?

Answered: 1 week ago