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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!