The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
You operate several hot dog stands distributed throughout town. Define a class named
HotDogStand that has a member variable for the hot dog standA????1s 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 function to test your class with at least three hot dog stands that each sell a
variety of hot dogs.
NEED THIS IN C++... PLEASE MAKE SURE THE PROGRAM ACTUALLY RUNS BEFORE JUST THROWING A CODE OUT THERE...
AND PLEASE MAKE SURE IT FOLLOWS ALL INSTRUCTIONS
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll