Question #45469

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.

The definitions of means are given as follows.

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.

The definitions of means are given as follows.

Expert's answer

## Comments

## Leave a comment