Here are the directions for a C++ / Object Oriented Programming project that I h
ID: 3556403 • Letter: H
Question
Here are the directions for a C++ / Object Oriented Programming project that I have started working on, but I'm having some issues with it. If necessary, include classes, structs, inheritance, operator overloading, templates, and exception handling. Thank you in advance.
1. Cars should already be available to rent (do not make the user enter in this information).
2. There will be smoking and non-smoking cars; large, mid-sized, and small cars.
3. You do not need to take a deposit to reserve a car rental, but a credit card type and number (with expiration date) is needed.
4. Limit your reservation system to one month out of the year and no more than 10 cars.
5. Clients should be able to make and cancel a reservation. A reservation might extend to 2 days and beyond.
6. If a requested car is not available, display a message denoting that the car is not available.
7. Your system needs to be able to recall and display reservation information.
Explanation / Answer
#include using namespace std; class CarRentalSystem { public: } class booking : public CarRentalSystem { int datebookedout; int Ndaysbooked; int carReg; public : } class vans : public CarRentalSystem { int insurancegroup; int seats; static int tax; char diesel; char hightop; int fuelsize; public: }; class vehicles : public CarRentalSystem { int insurancegroup; int seats; static int tax; char diesel; bool hightop; int fuelsize; public: } class sportscars : public CarRentalSystem { int insurancegroup; int seats; bool hightop; static int tax; char diesel; int fuelsize; public: } int main() { vans vans_rented[1];Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.