Question
could pleasw someone give me the pseudocode description for this code line by line float mysum = 0; for (int i = O; i mysum
could pleasw someone give me the pseudocode description for this code line by line
float mysum = 0;
for (int i = O; i
mysum = mysum + arr[i];
return mysum / n;
}
float standardDeviation (float arr[], int n)
}
float mysum = 0;
for (int i = O; i
mysum = (arr [i] - mean(arr, n)) *
(arr [i] - mean(arr, n));
return sqrt(mysum / n);
}
float median (float arr [lint n) {
float temp;
int i, j;
for(i=O; i
for (j=i+1; j
if(arr[i]
temp = arr [i];
arr[i] = arrOl;
arr[i] = temp;
}
}
}
if(n%2==0\5
return((arr[n/2] + arr[n/2 - 1]) / 2.0);
} else {
return arr [n/2];
}
float kurtosis (float arr[I, int n)
{
float mysum = 0;
for (int i = O; i
mysum = (arr [i] - mean(arr, n)) * (arr [i] - mean(arr,
n)) *
(arr [i] - mean(arr, n)) * (arr [il - mean(arr, n));
return mysum / (n * standardDeviation (arr, n) * standardDeviation(arr, n) * standardDeviation (arr, n) *
standardDeviation(arr, n));
}
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