Question: Problem 2 . Using the srand ( time ( NULL ) ) and rand ( ) , fill an one dimentional array of size at
Problem Using the srandtimeNULL and rand fill an one dimentional array of size at least with random numbers that have been scaled to the range to and then display the array.
Find the average value in the array by defining a function findAveg that returns double type of average value and passing it to the second funtion standardDeviation function. The second function should return double type of standard deviation value.
The third function displays the return values from those two functions in the console. Use three functions at least in your solution.
double findAvgint int; function prototype
double stdDevint int, double; function prototype
void writeOutdoubledouble; function prototype
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
