Body mass index (BMI) is a number calculated from a person’s weight and height. According to the Centers for Disease Control and Prevention, the BMI is a fairly reliable indicator of body fatness for most people. BMI does not measure body fat directly, but research has shown that BMI correlates to direct measures of body fat, such as underwater weighing and dual-energy X-ray absorptiometry. The formula for BMI is Weight/Height2 Where weight is in kilograms and height is in meters. Write a program that prompts for weight in pounds and height in inches, converts the values to metric, and then calculates the BMI. Note: 1 pound is 0.453592 kilograms and 1 inch is 0.0254 meters. For example, an execution could look like this: Please enter weight in pounds: 135 Please enter height in inches: 71 BMI is: 18.8284697141 File Name bmiimperial.py Score There are five tests each worth 2 points
Body mass index (BMI) is a number calculated from a person’s weight and height.
According to the Centers for Disease Control and Prevention, the BMI is a fairly
reliable indicator of body fatness for most people. BMI does not measure body fat
directly, but research has shown that BMI correlates to direct measures of body fat,
such as underwater weighing and dual-energy X-ray absorptiometry. The formula
for BMI is
Weight/Height2
Where weight is in kilograms and height is in meters.
Write a program that prompts for weight in pounds and height in inches,
converts the values to metric, and then calculates the BMI.
Note: 1 pound is 0.453592 kilograms and 1 inch is 0.0254 meters.
For example, an execution could look like this:
Please enter weight in pounds: 135
Please enter height in inches: 71
BMI is: 18.8284697141
File Name
bmiimperial.py
Score
There are five tests each worth 2 points
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images