Question #45479

Write a single program that calculates the arithmetic mean (average), rms average, geometric mean

and harmonic mean for a set of n positive numbers. Your program should take two values xlow and

xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic

mean (average), rms average, geometric mean and harmonic mean.

and harmonic mean for a set of n positive numbers. Your program should take two values xlow and

xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic

mean (average), rms average, geometric mean and harmonic mean.

Expert's answer

## Comments

## Leave a comment