numerical analasyis

hello i have a lab due tomorrow mid night its a completing to last lab it has a couple a question i will insert a capture of the lab and last lab that was done by you and lab4 how its supposed to be submitted

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Name: Ahmad Sadaqa
1000 Number:
09/28/2018
Question – #1
The lab asks to write two functions, one to calculate the average of an array, and one to calculate the
standard deviation of an array. Since we need to loop over a set number of elements in the array, we
need to use a for loop in each function. The average and standard deviation are calculated for all 100
values, and printed to the screen. Then, it is done for the first 50 values, as well.
CODE AND COMMENTS
#include
#include
//Function that takes an array and an integer
//as arguments to calculate the average of the
//first ‘s’ numbers in an array.
float average (float a[], int s)
{
//Return value to store the standard deviation
float returnVal = 0;
for(int i=0; i

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER