Question: Write a C program that accepts 5 integers from a user and then calculates their arithmetic mean, geometric mean, harmonic mean, and standard deviation. The
Write a C program that accepts 5 integers from a user and then calculates their arithmetic mean, geometric mean, harmonic mean, and standard deviation. The program should then print and label the original 5 numbers and the four statistics. You will need to include the math library (#include math) to use pow() and squareroot () Equations: Arithmetic Mean: X bar = sigma_i = 1^n X_i Geometric Mean: (Product_i = 1^n a_1)^1 = n squareroot a_1 * a_2 * a_n Harmonic Mean: Standard Deviation: S = squareroot sigma_i-1^n (X_i - X)^2 Here is a sample of what you program should do. Please Enter Five Integers: 85 43 95 100 78 Data: 85 43 95 100 78 Results: Arithmetie Mean = 80.2 Geometric Mean = 77.0089 Harmonic Mean = 73.1343 Standard Deviation = 20.1137
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
