Question: C++ Write a program that prompts for and reads numbers into an array. The array should be big enough to hold 20 numbers. You keep

 C++ Write a program that prompts for and reads numbers intoC++

Write a program that prompts for and reads numbers into an array. The array should be big enough to hold 20 numbers. You keep reading until the user enters a negative number. You should then print the numbers they entered. You then use a function that is passed the array and the number of items they entered and returns the average of the numbers. Then call two functions which take the same parameters. The first returns the largest number in the array and the second returns the smallest number bin the array. Print the average, the largest, and the smallest number

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!