Question: Please do this in C++, and look at the sample output before starting. Thanks! You operate several hot dog stands distributed throughout town. Define a
Please do this in C++, and look at the sample output before starting. Thanks!

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 tor how many hot dogs the stand has sold that day. Lreate a constructor that allows a user of the class to initialize both values. Also create a method named just Sold() that increments the number of hot dogs the stand has sold by one. The idea is that this method will be invoked each time the stand sells a hot dog so that we can track the total number of hot dogs sold by the stand. Add another method that returns the number of hot dogs sold. Finally add a static variable that tracks the total number of hotdogs sold by all hot dog stands and a static method that returns the value in this variable. Sample output Stand 1 sold 2 Stand 2 sold 1 Stand 3 sold 0 Total sold 3 Stand 1 sold 3 Stand 2 sold 1 Stand 3 sold 1 Total sold 5 Start with the tollowing main) tunction: int main0 HotDogStand s1(1,0),s2(2,0),3(3,0) s1.justSold0; s2 justSold0; s1.justSold0; coutStand "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
