Draw a flowchart to print the arithmatic
mean and geomeetric mean of five.
given
numbers
[ Arithmatic mean is average; geometric
mean is product of numbers divided by 5] please tell me
Attachments:
Answers
Answered by
2
Answer:
Given two numbers, first calculate arithmetic mean and geometric mean of these two numbers. Using the arithmetic mean and geometric mean so calculated, find the harmonic mean between the two numbers.
Examples:
Input : a = 2
b = 4
Output : 2.666
Input : a = 5
b = 15
Output : 7.500
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Arithmetic Mean: Arithmetic Mean ‘AM’ between two numbers a and b is such a number that AM-a = b-AM. Thus, if we are given these two numbers, the arithmetic mean AM = 1/2(a+b)
Geometric Mean: Geometric Mean ‘GM’ between two numbers a and b is such a number that GM/a = b/GM. Thus, if we are given these two numbers, the geometric mean GM = sqrt(a*b)
Similar questions
Chemistry,
3 months ago
Math,
3 months ago
Physics,
6 months ago
Economy,
6 months ago
India Languages,
11 months ago
Social Sciences,
11 months ago