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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 18PE: One way to determine how healthy a person is by measuring the body fat of the person. The formulas...
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Recurrence Relation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning