Question: Write a program that includes a function named calc_avg(). The calc_avg() function should calculate and return the average of the values stored in array named

Write a program that includes a function named calc_avg(). The calc_avg() function should calculate and return the average of the values stored in array named tes_tvals The array should be declared in main() and include the 10 values of 89, 95, 72, 83, 99, 54, 86, 75, 92, 93. The average value returned from calc_avg() should be displayed using cout statement in the main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
