Question: Write a C/C+ program that accepts an input vector of N test grades from the user typed in one by one with a for loop,
Write a C/C+ program that accepts an input vector of N test grades from the user typed in one by one with a for loop, then calculates the sum, mean, variance, standard deviation for the grades and prints out to screen. Note for loops will be needed to calculate the sum of grades and the variance. Also use for loops to find the minimum and maximum grades; as well as the of even and odd grades Use the following formulas in your program Mean = sum of grades/N Variance = sum of (grades[i] -mean)* (grades[i] mean) Std _dev = sqrt(variance)/(N+1) After writing your code, test with following 36 grades: 88, 76, 56, 49, 90, 82, 71, 66, 69, 94, 97, 85, 81, 70, 33, 58, 65, 75, 89, 93, 92, 86, 74, 79, 64, 59, 68, 78, 84 47, 80, 55, 74, 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
