Question: write in C++ Arithmetic Questions for Online Students Consider the following programming problem. The program is supposed to prompt the user for three integer values
Arithmetic Questions for Online Students Consider the following programming problem. The program is supposed to prompt the user for three integer values and is then to calculate the anthmetic mean and the geometric mean, avoiding integer truncation Write a program that prompts the user to enter three integers (must declare as data type it) and then calculates the arithmetic mean (average) as a decimal number and prints the value with two decimal digits. x1+x2+x3 arithmeticMean = 3 Also calculate and print the harmonic mean of the same numbers according to the following formula 3 harmonicMean= 1.11 x1 X2 X3 Be certain that there is no integer truncation in the denominator Test with integer values of 4,7, and 8. Arithmetic mean is 6.33 and the harmonic mean is 5.79
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
