Question: c + + Create a file with the numbers shown below. Write a program to input all of the numbers into an array, max size

c++
Create a file with the numbers shown below.
Write a program to input all of the numbers into an array, max size 50. Do NOT use vectors.
Consider that the file may be smaller or larger than 50 items.
Write a function to find the average of all of the numbers in the array. Return the average to main.
Write a function to count how many values are greater than the average.
The data:
56437812291006347289412
Output:
Average is 51.09
Greater than the average 5

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 Programming Questions!