Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**in c++** CSC 2000 Introduction to C++ Programming Language Fall Term 2018 Lab 08 15 points Due in lab Write a program that includes two
**in c++**
CSC 2000 Introduction to C++ Programming Language Fall Term 2018 Lab 08 15 points Due in lab Write a program that includes two functions named calcavg0 and variance0. The calcavg0 function should calculate and return the average of values stored in an array named testvals. The array should be declared in main0 and include the values 89,95, 72, 83, 99, 54, 86, 75,92, 73, 79, 75, 82, and 73. The variance0 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 calcavg0 and variance0 should be displayed by using cou tstatements in main0. The average is 80.5 The variance is: 124.679 Press any key to continue Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started