Question: Write a program using array, and pass the array to a function that asks user to input 5 numbers, calculates the average of those numbers,

 Write a program using array, and pass the array to a

Write a program using array, and pass the array to a function that asks user to input 5 numbers, calculates the average of those numbers, then count the total number that is greater than the average. For example, you have input 5 numbers as: 1, 2, 3, 4, 5. The average is 3. The total count above the average is 2. You have to use the loop to do this

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!