Question: Develop in python The body mass index (BMI) is calculated as a person's weight (KG)divided bythe square of the person's height (in inches). A BMI
Develop in python
The body mass index (BMI) is calculated as a person's weight (KG)divided bythe square of the person's height (in inches). A BMI in the range 19-25 (inclusive)is considered healthy. Develop a program that calculates a person's 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 don't 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.2
Output:Your BMI is 32.19.
You are obese. Lose weight to live longer.
See https://bmicalculatoraustralia.com/for an example BMI calculator.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
