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()

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

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!