CAR Rental Simulator Project Description: ➤ It is required to develop a program that simulates the Car Rental platform.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CAR Rental Simulator Project Description: ➤ It is required to develop a program that simulates the Car Rental platform.

Post by answerhappygod »

Car Rental Simulator Project Description It Is Required To Develop A Program That Simulates The Car Rental Platform 1
Car Rental Simulator Project Description It Is Required To Develop A Program That Simulates The Car Rental Platform 1 (100.35 KiB) Viewed 39 times
CAR Rental Simulator Project Description: ➤ It is required to develop a program that simulates the Car Rental platform. The code should be organized in 3 files: vehicle.h, customer.h, main.cpp The vehicle.h file will contain class definitions (data members and member function). ➤ The customer.h file will contain class definitions (data members and member function). ➤ The main.cpp file should contain objects creation and other needed functions. Operations: (1) Vehicle.h and vehicle.cpp files details:
Operation class CVehicle Class CCustomer Sub Operation Private variables Public variables Constructor Add_Car_details() Get_cars_Info() Rent_car() Private variables Action Required int Car_Number, char car_model[10], char car_type[10], float car_price[5], bool rented, char return_time[10], char rentled_name[50].... Ect. NONE. Create setter and getter functions to access all private variables Initialize each variable with NULL for string and Zero for other numbers. A public function that 1) prompts the user to enter car data, and 2) stores these values for the Cvehicle class members. A public function that prints all vehicle 's data. Make the boolen value True and write the return time int Cus_ID, char Cus_name[50], char Cus_Email[10],
Class CCustomer Private variables Public variables Constructor int Cus_ID, char Cus_name[50], char Cus_Email[10], char Email Password[10].... Ect. NONE. Create setter and getter functions to access all private variables
class CBUS (BONUS) (A class for Rent Bus. This class inherits from vehicle class and adds a new data member: number_passengers of bus, name_of_driver) Add_customer_info() Get Customer_info() private variables public variables (2) Main.cpp file: A public function that accepts values for the customer class members and store them. A public function that prints the customer details. This class should inherit the vehicle class and adds another private data member: number_passengers_of_bus, name_of_driver. NONE. Create setter and getter functions to access all private variables for the CBUS class. 1- First, input the number of cars (n_cars) to be add in the system
(2) Main.cpp file: 1- First, input the number of cars (n_cars) to be add in the system 2- Then create an array of Cvehicle objects, anther array of Ccustomer 3- Create a for loop from 1 to n_cars that calls Add_Car_details() function to store Cars' data. 4- Create another for loop from 1 to n_cars that calls Get_cars_Info(). 5- Make a user to login () and then rent a car, 6- Then print all the cars details in user friendly way in console. 7- (Bonus) Inherit the class Bus from the vehicle class and perform the same operations for the inherited class as in 1,2,3,4 while taking into consideration the new data member (no. of passenger, and the driver name).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply