Question: Here is our program: Write a short program that asks for the user's height in feet and inches (as integers) and the user's weight in
Here is our program: Write a short program that asks for the user's height in feet and inches (as integers) and the user's weight in pounds (as real). (Use three variables to store this information.) The program should report the user's body mass index (BMI). To calculate the BMI, first convert the height in feet and inches to height in inches ( 1 foot =12 inches). Then convert the height in inches to height in meters by multiplying by 0.0254. Then convert the user's weight in pounds into kilograms by dividing by 2 .2. Finally, compute the user's BMI by dividing the user's weight in kilograms by the square of the user's height in meters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
