Question: In C program #include One way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine
In C program
#include
One way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine the body fat for female and male are as follows: Body fat formula for women:
A1 = Body Weight * 0.732 + 8.987
A2 = Wrist Measurement At Fullest Point / 3.140
A3 = Waist Measurement At Navel * 0.157
A4 = Hip Measurement At Fullest Point * 0.249
A5 = Forearm Measurement At Fullest Point * 0.434
B = A1 + A2 - A3 - A4 + A5
Body Fat = Body Weight - B
Body Fat Percentage = Body Fat * 100 / Body Weight
Body fat formula for men:
A1 = Body Weight * 1.082 + 94.42
A2 = Waist Measurement At Fullest Point * 4.15
B = A1 - A2
Body Fat = body Weight - B;
Body Fat Percentage = Body Fat * 100 / body Weight
Write a program that asks for the gender and the all the input appropriate to the gender, then calculate and display the Body Fat and Body Fat Percentage.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
