Question
In Python write a program that asks the user to enter the weight and height (in float) and then calculate the BMI. Display the result.
In Python write a program that asks the user to enter the weight and height (in float) and then calculate the BMI. Display the result. The program should verify the results and display the following outputs based on results:
Hints: Declare a global constant for Body Mass multiplier Declare local variables BMI calculation is as follows: BMI = weight * (BODY_MASS_MULTIPLIER) / (height * height)
The expected outputs are:
Display Body Mass Indicator is 703 for each calculation
If the BMI is more than 25 then display you are overweight
If the BMI is no more than 18.5 then display you are underweight
Otherwise, display Your weight is optimal
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