Question

2. After part 1 is completed, write code to get 20 integer numbers from the user. The

code then displays how many of those numbers are above the numbers average. To get

proper credit you must follow these steps:

a. write a for loop to fill the array with numbers from the user. Use a pointer

b. uses an index to pass through all array elements to calculate the average in

another loop.

c. write a function, then pass the array, its size, and the average to the function.

The function returns the count of the number of elements that are above the average.