IN C**** 9.24 LAB: Calculate average Complete the CalcAverage() function that takes an array ofintegers and the
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Data Structures And Algorithms In C++
ISBN: 9780470383278
2nd Edition
Authors: Michael T. Goodrich, Roberto Tamassia, David M. Mount
Posted Date: