Question: Develop Python The body mass index (BMI) is calculated as a persons weight (KG)divided bythe square of the persons height (in inches). A BMI in
Develop Python
The body mass index (BMI) is calculated as a persons weight (KG)divided bythe square of the persons height (in inches). A BMI in the range 19-25 (inclusive)is considered healthy. Write aprogramthat calculates a persons BMI and prints a message telling whether they are above, within, or below the healthy range.This program mustkeep on calculating BMI for the given input till user says,they dont want to continue.Hint: use a while loop and ask the user if they want to calculate BMI. If the answer is Yes, continue with calculations. If the answer is No quit the program.
Example: Input:Height=1.78m Weight = 102KG Process:BMI = 102 / (1.78*1.78) =32.2Output:Your BMI is 32.19.You are obese. Lose weight to live longer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
