0% found this document useful (0 votes)
33 views6 pages

Bmi Project

This project creates a body mass index (BMI) calculator using Python. BMI is a measure of weight relative to height that is used to classify individuals as underweight, healthy weight, overweight, or obese. The Python code takes height and weight values from the user as input, calculates BMI by dividing weight in kilograms by the square of height in meters, and outputs the BMI along with the corresponding weight category. The project aims to promote healthy eating by screening for weight classes that may impact health.

Uploaded by

saranya ganesan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

Bmi Project

This project creates a body mass index (BMI) calculator using Python. BMI is a measure of weight relative to height that is used to classify individuals as underweight, healthy weight, overweight, or obese. The Python code takes height and weight values from the user as input, calculates BMI by dividing weight in kilograms by the square of height in meters, and outputs the BMI along with the corresponding weight category. The project aims to promote healthy eating by screening for weight classes that may impact health.

Uploaded by

saranya ganesan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

VELAMMAL VIDYALAYA THENI

COMPUTER SCIENCE PROJECT

TOPIC: BODY MASS INDEX CALCULATOR

SUMITTED BY: SUMITTED TO:


BALA SURYA.G MR.HARI PRASATH

(subject teacher )

CLASS:
XII B1
CONTENT:

S.NO TOPIC PG.NO

1 INTRODUCTION 1

2 SOURCE CODE 2

3 OUTPUT 3

4 BIBLIOGRAPHY 4
INTRODUCTION: pg:1

BMI is a measure of relative weight based on an individual’s mass and


height. Today, Body Mass Index is commonly used to classify people as
underweight, overweight, and even with obesity. Also, it is adopted by
countries to promote healthy eating
BMI can be considered as an alternative for direct measurements of body
fat. Besides, BMI is an inexpensive and easy-to-perform method of
screening for weight classes that may cause health problems to promote
healthy eating.
The body mass index is calculated by dividing an individual’s weight in
kilograms by their height in meters, then dividing the answer again by
their height. Now let’s see how to create a BMI calculator with Python:
SOURCE CODE: pg: 2

Height=float (input (“Enter your height in centimeters :”))

Weight=float (input (“Enter your weight in kg :”))

Height=Height/100

BMI=Weight / (Height*Height)

Print (“your body mass index is:”BMI)

If (BMI>0):

If (BMI<=16):

Print (“you are severely underweight”)

elif (BMI<=18.5):

Print (“you are underweight”)

elif (BMI<=25):

Print (“you are Healthy”)

elif (BMI<=30):

Print (“you are overweight”)

else :

Print (“you are severely overweight”)

else :

Print (“enter the valid details”)


OUTPUT: pg: 3

Enter your height in centimeters: 170


Enter your Weight in Kg: 67
your Body Mass Index is: 23.18339100346021
you are Healthy
BIBLIOGRAPHY: pg: 4

 www.google.com

 www.wikipedia.org

 www.yahoo.com

 Class XI & XII NCERT Book

You might also like