Question: IN C**** 9.24 LAB: Calculate average Complete the CalcAverage() function that takes an array ofintegers and the size of the array as parameters. CalcAverage() function
IN C****
9.24 LAB: Calculate average
Complete the CalcAverage() function that takes an array ofintegers and the size of the array as parameters.
CalcAverage() function then calculates and returns the averagevalue of the elements in the array as a double. The input of themain program begins with the size of an array, followed by theelements of the array.
Ex: If the input of the program is:
5 1 2 3 4 5
then the output will be:
The average is: 3.0
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
C program that reads an array of integers and calculates and displays the average of the array inclu... View full answer
Get step-by-step solutions from verified subject matter experts
