Question
Allow a user to enter any number of double values up to 15. The user should enter 99999 to quit entering numbers. Display an error
Allow a user to enter any number of double values up to 15. The user should enter 99999 to quit entering numbers. Display an error message if the user quits without entering any numbers; Display the count of numbers entered and arithmetic average of the numbers, formatted with commas if necessary and 2 decimal places.. Name the file ArrayAverage.
Sample Output:
Enter a numeric value or 99999 to quit >> 3 Enter next numeric value or 99999 to quit >> 6 Enter next numeric value or 99999 to quit >> 10 Enter next numeric value or 99999 to quit >> 99999
You entered 3 numbers and their average is 6.33
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