Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include using namespace std; const int MAXNUMCARS100; class Car private: string m_make; string m_model; double m_earnedOnCar 1 all the money the car has earned public:
#include using namespace std; const int MAXNUMCARS100; class Car private: string m_make; string m_model; double m_earnedOnCar 1 all the money the car has earned public: hi class Dealership Car(string make, string model); double getAmountEarned0nCar) const; //part a private: Cars m cars[MAXNUMCARS] int m-numCars; // # of cars void swapCars(int pos1, int pos2);use in c public: double getTotalSales) const; // part b void updateInventory (double limit); // partc void addCar (Car*); IIuse in e //Rest of class not shoown hi #include using namespace std; const int MAXNUMCARS100; class Car private: string m_make; string m_model; double m_earnedOnCar 1 all the money the car has earned public: hi class Dealership Car(string make, string model); double getAmountEarned0nCar) const; //part a private: Cars m cars[MAXNUMCARS] int m-numCars; // # of cars void swapCars(int pos1, int pos2);use in c public: double getTotalSales) const; // part b void updateInventory (double limit); // partc void addCar (Car*); IIuse in e //Rest of class not shoown hi
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