Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Have I incorporated my research into my outline effectively?

Answered: 1 week ago