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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!