/* You operate several hot dog stands distributed throughout town. Define a class named "HotDogStand" that has a member variable for the hot dog stand's ID number and a member variable for how many hot dogs the stand sold that day. Create a constructor that allows a user of the class to initialize both values. Also create a function named "JustSold" that increments the number of hot dogs the stand has sold by one. This function will be invoked each time the stand sells a hot dog so that you can track the total number of hot dogs sold by the stand. Add another function that returns the number of hot dogs sold. Finally, add a static variable that tracks the total number of hot dogs sold by all hot dog stands and a "static" function that returns the value in this variable.. Write a "Main" funciton to test your class with at least three hot dog stands that sell a variety of hot dogs. */ #include using namespace std; class HotDogStand // Declare "HotDogStand" class with hot dog stand ID numbers and hot dogs sold that day. { private: int IDnumber; int HotDogsSold; public: HotDogStand(int IDnumber, int hotDogsSold); // Constructor to let users initialize both values. }; int JustSold(int HotDogsSold); // JustSold Function declaration. int static(int HotDogsSold); // static function declaration int main() //Main function. Test the class with three stands tha tsell a variety of hot dogs. { HotDogStand a, b, c; // Initializing three hot dog stands. return 0; // End of program } int JustSold(int HotDogsSold) // JustSold Function declaration. INcrements number of hot dogs sold by one, invoked every time a stand sells a hot dog. Return { // number of hot dogs sold. HotDogsSold++; // Increment hot dogs sold return HotDogsSold; // Return value. } int static(int HotDogsSold) // static function. Returns the value of static variable, the total number of hot dogs sold by all stands. { HotDogsTotal += HotDogsSold; // Update HotDogsTotal. REMEMBER TO INITIALIZE HOTDOGSTOTAL AS ZERO SOMEWHERE! return HotDogsTotal; // Total hot dogs sold }