Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions