(statistics) write a program that includes two functions named calcavg() and the calcavg() function should calculate and return the average of values stored in an array named testvals. the array should be declared in main() and include the values 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, and 73. the variance() function should calculate and return the variance of the data. the variance is obtained by subtracting the average from each value in testvals, squaring the values obtained, adding them, and dividing by the number of elements in testvals. the values returned from calcavg() and variance() should be displayed by using cout statements in

Solved
Show answers

Ask an AI advisor a question