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: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I have attached my programming problem. The solution should be in C++. I have written half of the code, but I just can't think of how to get it to come together. Thanks.
CMPSC 101LAB 9 – Basic statisticsWrite a program that reads numbers from the input stream until a zero is encountered.Display the average (rounded down to an integer), the maximum number and theminimum number. Assume that numbers entered will be between 1 and 1000. Forexample:Enter a number: 33Enter a number: 88Enter a number: 77Enter a number: 22Enter a number: 66Enter a number: 55Enter a number: 0Average: 56Max: 88Min: 22Another example:Enter a number: 0No data, so no answers!Run it5 timeswith different data,including the two above examples.Then, following the instructions in the “How to package and submit your labs” video,package up your work. Double check to confirm that the package is complete (i.e., allthe header info, the code, the screen shots, the output, etc.), and then submit it to thedrop box.Next, go back and confirm that the submission is in the drop box!
Attachments: