To make sure we have access to appropriate programming tools,please write a small library (including a header file) of serial Cfunctions that perform as described. In a separate C file write amain routine that uses your library to generate a small-ish arrayof random values and show that the standard deviation lowers as thearray is smoothed.
• void random_array(double* array, int size, doublescale);
– load an array with random double values scaled by scale(random number generators generate double values between 0 and 1).Note: array should point to memory already allocated.
• double sum(double* array, int size);
– return the sum of all elements in the
PayPal Gateway not configured
PayPal Gateway not configured