Question: Write a program that reads positive numbers (integers) and stores them into an array. 1.Write a method to prompt for the input values. (sentinel terminated)

Write a program that reads positive numbers (integers) and stores them into an array.

1.Write a method to prompt for the input values. (sentinel terminated)

2. Write a method to print the array.

3. Write a method that returns the value of the smallest number.

4. Write a method that returns the value of the largest number.

5. Write a method to find the location of a number (array index + 1)

6. Write a method to compute the average of the numbers in the array.

7. Write a method to output the results.

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!