Question: Write a code ( in C++) that asks the user to keep entering numbers. When the user enters 0 the program should show the count
Write a code ( in C++) that asks the user to keep entering numbers. When the user enters 0 the program should show the count of how many numbers were entered, the total, average, highest and lowest of the numbers numbers. Use a priming read sentinel controlled loop.
AVERAGE should display as a decimal number!
| Enter several numbers (0 to quit): 4 2 8 6 12 10 22 0 Count: 7 Total: 64 Average: 9.1 Highest: 22 Lowest: 2 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
