Write a complete program called to calculate and output the Arithmetic mean, Geometric mean, and Harmonic mean in groups of two or three numbers
W’rite a complete program called <lastname_first_inital.cpp> to calculate and output the Arithmetic
mean, Geometric mean, and Harmonic mean in groups of two or three numbers (as shown below) using
a suitable format by inputting these possible values: 1‘1 = 5.0, 1‘2 = 4.0, 13 = 3.0 or 1:1 = 16.0, $2
16.0, 1’3 = 16.0
Equations:
I + :r + 1‘ . . :1? + :1:
Arithmetic mean (3) = + Arlthmetlc mean (2a)
1: + 1‘ . . 1‘ + 1‘
Arithmetic mean (2b) = % Arithmetic mean (2c)
Geometric mean (3) = {Vxl * 172 a: 173 Geometric mean (2a) = «1:1 * m2
Geometric mean (2b) = «1:2 * x3 Geometric mean (2c) = M171 a: 2:3
3 , 2
Harmonic mean (3) = w Harmonic mean (2a.) = fl
-l- – -l-
1‘1 ;’32 1’3 :21 1.2
2 , 2
Harmonic mean (2b) = fl Harmonic mean (2c) = fl
1‘2 13 1‘1 13