Question
Write Python code for the following tasks. *Ask the user to input the weight of a person in pounds, the height in feet and inches,
Write Python code for the following tasks.
*Ask the user to input the weight of a person in pounds, the height in feet and inches, and calculate the BMI. The simple formula to calculate the BMI is: BMI = weight in pounds * 703 / (height in inches * height in inches) So, you need to convert the feet portion of the height to inches by multiplying it by 12 and add it to the height in inches portion to get the height in inches. For example, for a person who is 5 feet 8 inches tall and weighs 160 pounds, the BMI = 160 * 703 / (68*68) = 24.32 which happens to be normal. Do you see how I arrived at 68? 5*12 + 8 is 68! Clearly explain the output. Dont just display a value.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started