Question: 1. Write a program that asks for five numbers and returns their arithmetic mean, better known under the name of average. 2. Modify your
1. Write a program that asks for five numbers and returns their arithmetic mean, better known under the name of average. 2. Modify your program so that it also returns their harmonic mean. Note: the harmonic mean is "the reciprocal of the arithmetic mean of the reciprocals", or more clearly written as H = Please write five numbers: 10.5 5 3 6 4.2 The arithmetic mean is 5.74 and the harmonic mean is 4.83871 == 3. Try these programs on a couple of examples. Which mean do you prefer when it comes to calculating your final grade?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
