Hi! I'm new here. I have a problem. here it is: Write a program that includes two functions named calcAverage() and variance(). The calcAverage() function should calculate and return the average of the values stored in an array named testvals. The array should be declared in main() and should include the values 89, 95, 72, 83, 99, 54, 86, 75, 92, 73, 79, 75, 82, 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 calcAverage() and variance() should be displayed using cout statements activated from within main().
I need some help with this. I have no idea where to start from. Anyone can help me? I'm new to C++ any information would be wonderful! Thanks