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: | 327 Weeks Ago, 5 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
We're doing loops part 2 right now but I need help with this lab.
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: