Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago