Question: Question No . 6 : Write a Python program to ask the user to input their weight and height as two float numbers and displays
Question No: Write a Python program to ask the user to input their weight and height as two float numbers and displays hisher body mass index BMI and if being overweight or not. BMI is calculated as the weight in kilograms divided by the squared height in meters. A BMI value of or more indicates overweight.
Problem input: weight, height
Problem printoutput:
BMI # Body mass index
Overweight #Yes or no
Test your program with the following pairs of weights and heights:
a kilograms
meters
b kilograms
meters
c kilograms
meters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
