[SOLVED] CMPSC 101 LAB 9 – Basic statistics

20.00 $

Categories: ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon 10721997.zip (0.4 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)
Write 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 the
minimum number. Assume that numbers entered will be between 1 and 1000. For
example:
Enter a number: 33
Enter a number: 88
Enter a number: 77
Enter a number: 22
Enter a number: 66
Enter a number: 55
Enter a number: 0
Average: 56
Max: 88
Min: 22
Another example:
Enter a number: 0
No data, so no answers!
Run it 5 times with 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., all the header info, the code, the screen shots, the output, etc.), and then submit it to the drop box.
Next, go back and confirm that the submission is in the drop box!
  • 10721997.zip