Title | BMI Calculator Program |
---|---|
Author | ZA - 10VA 796568 Lincoln Alexander SS |
Course | Computer Science |
Institution | High School - Canada |
Pages | 2 |
File Size | 104.6 KB |
File Type | |
Total Downloads | 17 |
Total Views | 139 |
the python code for a BMI calculator...
BMI Calculator Program.
Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. Body mass index is a value derived from the mass and height of a person. The BMI is defined as the body mass divided by the square of the body height, and is expressed in units of kg/m², resulting from mass in kilograms and height in metres. The
result is used to determine if that individual is obese, overweight, normal weight or underweight depending on where they fall within the BMI category ranges. Write a Python program that will calculate the BMI as per specifications below. Prompt user to Enter the weight(in kg) and height(in metres)
Calculate the BMI Using the BMI Formula.
How is BMI Calculated? The body mass index formula is easy to determine. It’s a simple calculation that takes into account your weight and height.
The imperial BMI formula = Weight (LBS) x 703 ÷ Height (Inches²)
The metric BMI formula = Weight (KG) ÷ Height (Metres²)
SI, Metric Units: mass (kg) BMI = height2 (m)
Body Mass Index Categories Technically, the BMI scale will place you in one of six categories. The table below lists the BMI categories along with the BMI score associated with each category. Classification
Body Mass Index Score
Underweight
less than 18.5
Classification
Body Mass Index Score
Normal Weight
18.5 – 24.9
Overweight
25 – 29.9
Obesity (Class 1)
30 – 34.9
Obesity (Class 2)
35 – 39.9
Extreme Obesity (Class 3)
40+
Your Program must calculate the BMI index and determine the category where one fall into.
Create test data for testing your program and submit it in D2L....