Question: Problem 2 . Using the srand ( time ( NULL ) ) and rand ( ) , fill an one dimentional array of size at

Problem 2. Using the srand(time(NULL)) and rand(), fill an one dimentional array of size at least 100 with random numbers that have been scaled to the range 1 to 100 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 findAvg(int [], int); // function prototype
double stdDev(int [], int, double); // function prototype
void writeOut(double,double); // function prototype

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!