Question: Using the following grades in an array, use functions to calculate the lowest grade, the highest grade, the mean, and the standard deviation. NOTES: Use
Using the following grades in an array, use functions to calculate the lowest grade, the highest grade, the mean, and the standard deviation. NOTES: Use the ability of functions to call other functions. You are not allowed to use the math.h library so refer to the book (Chapter 7) for calculations (especially for the square root).
| 78.5 | 90.5 | 98.5 | 73 | 81.5 |
| 74 | 71.5 | 86 | 73 | 85.5 |
| 81.5 | 87 | 96 | 89 | 84 |
| 85 | 86 | 76 | 86 | 77.5 |
| 78.5 | 90.5 | 81.5 | 90.5 | 86 |
| 90 | 81 | 86 | 89 | 78 |
To calculate standard deviation you must:
Step 1: find the mean of all the grades
Step 2: for each grade, subtract the mean and square the result
Step 3: calculate the mean of the squared differences
Step 4: calculate the square root of Step 3
Prompt the user for how many entries they want to use.
Proper commenting please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
