Question
This is for C++, the program should include the techniques below: 1. Inheritance 2. Virtual functions 3. Constants and references 4. Constant methods 5. Copy
This is for C++, the program should include the techniques below:
1. Inheritance 2. Virtual functions 3. Constants and references 4. Constant methods 5. Copy constructors 6. Dynamic memory allocation
Write a C++ program to manage a Car Dealership SELL Software System. The main user is customer at the dealership.
Build Specifications:
1. The system should load four type of cars and prices. Four type of cars: Sedan, Truck, SUV, and mini Van.
2. User could add four options into the car choosed and option's price.Four options: sunroof, security, entertainment, and advanced safety feature.
3. As each vehicle can be equipped with none or more options, and even the same option (e.g. sunroof) can be added twice to the same vehicle.
4. The system needs to be able calculate the total price accurately (base car price + prices of installed options) after customer done.
5. The system should do error handling.
The program have the following properties:
1. Setting class and date member of each class by yourself
2. ONLY one file for your program: Car.cpp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started