Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me write a program and the output example is following. Min Max Sum Count Average Write a C++ program that will: 1. read
Please help me write a program and the output example is following.
Min Max Sum Count Average Write a C++ program that will: 1. read an unknown number of non-negative integers from the user 1. stop reading when the user enters -999 2. report the Min, Max, Sum, Count, and Average of the data (round output to 3 decimal places) Sample Run Min = 10 Max = 92 Sum = 1284 Count = 21 Average = 61. 143 Sample Input Data Min = 1 Max = 10 Sum = 55 Count = 10 Average = 5.500 *** Start Extra Credit *** Range = 9 Midrange = 5.500 *** End Extra Credit *** Min = 168 Max = 168 Sum = 168 Count = 1 Average = 168.000 *** Start Extra Credit *** Range = 0 Midrange = 168.000 *** End Extra Credit *** Min = 4 Max = 1000 Sum = 302762 Count = 586 Average = 516. 659 *** Start Extra Credit **** Range = 996 Midrange = 502.000 | ** End Extra Credit *** Min = 36 Max = 36 Sum = 2088 Count = 58 Average = 36.000 ***** Start Extra Credit *** Range = 0 Midrange = 36.000 **** End Extra Credit *** Min = 0 Max = 10 Sum = 15174 Count = 3080 Average = 4. 927 *** Start Extra Credit *** Range = 10 Midrange = 5.000 *** End Extra Credit *** Min = 0 Max = 10 Sum = 138 Count = 28 Average = 4. 929 *** Start Extra Credit *** Range = 10 Midrange = 5.000 *** End Extra Credit ***Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started