Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

reate a program named IntegerFacts whose Main ( ) method declares an array of ten integers. Call a method named FillArray to interactively fill the

reate a program named IntegerFacts whose Main() method declares an array of ten integers.
Call a method named FillArray to interactively fill the array with any number of values up to ten or until a sentinel value (999) is entered. If an entry is not an integer, re-prompt the user.
Call a second method named Statistics that accepts out parameters for the highest value in the array, lowest value in the array, sum of the values in the array, and arithmetic average.
In the Main() method, display all the statistics in the following format:
The array has 2 values
The highest value is 11
The lowest value is 1
The sum of the values is 12
The average is 6
The inputs were 1,11, and 999

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Define pay ranges. What is the purpose of establishing pay ranges?

Answered: 1 week ago

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago

Question

=+Describe an important trade-off you recently faced

Answered: 1 week ago