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 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
Get step-by-step solutions from verified subject matter experts
