Question: Can you please help me with this C++ question. Will rate! Thanks! Please use C++ h) Define a class FleetManager with the following data members,
Can you please help me with this C++ question. Will rate! Thanks!
Please use C++ h) Define a class FleetManager with the following data members, A variable carfleet size that specifies the number of cars in the fleet. A variable truckfleet size that specifies the number of trucks in the fleet. Collection of cars in the fleet, may be an array of car objects. Collections of trucks in the fleet, may be an array of truck objects. Collection of customers, may be an array of customer objects. Collection of vehicle rental contracts, may be an array of CarRentalContract objects. . At least the following additional member functions should be provided, A member function that processes a reservation request received as a parameter. If reservation is successful it should return reservation request number otherwise zero. The reserved vehicle should have the closest capacity larger than the requested capacity. If reservation is successful a car rental object should be created and stored in the array of CarRentalContract. A member function that receives a reservation request number as a parameter and outputs the details of the related car rental contract object. A member function that receives a reservation request number and current date as parameters and cancels reservation request. A member function that processes the returned vehicles which has the request reservation number and new milage of the vehicle as parameters. - - Please use C++ h) Define a class FleetManager with the following data members, A variable carfleet size that specifies the number of cars in the fleet. A variable truckfleet size that specifies the number of trucks in the fleet. Collection of cars in the fleet, may be an array of car objects. Collections of trucks in the fleet, may be an array of truck objects. Collection of customers, may be an array of customer objects. Collection of vehicle rental contracts, may be an array of CarRentalContract objects. . At least the following additional member functions should be provided, A member function that processes a reservation request received as a parameter. If reservation is successful it should return reservation request number otherwise zero. The reserved vehicle should have the closest capacity larger than the requested capacity. If reservation is successful a car rental object should be created and stored in the array of CarRentalContract. A member function that receives a reservation request number as a parameter and outputs the details of the related car rental contract object. A member function that receives a reservation request number and current date as parameters and cancels reservation request. A member function that processes the returned vehicles which has the request reservation number and new milage of the vehicle as parameters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
