BMI Calculator in
Python
Diploma in Information Technology
Name: _______________________
Roll NO: ______________________
Government Polytechnic Institute Sardar Ghari
Peshawar City
1|Page
Table of Contents
1. DECLARATION:.................................................................... 3
2. INTRODUCTION: ................................................................. 5
3. POSSIBLE USE CASES: ........................................................ 5
3.1. .........................................................................................
PERSONAL HEALTH MONITORING .................................................. 5
3.2. .........................................................................................
FITNESS AND WELLNESS APPS...................................................... 6
3.3. .........................................................................................
CLINICAL ASSESSMENTS .............................................................. 6
3.4. .........................................................................................
EDUCATIONAL TOOLS .................................................................. 6
4. LITERATURE REVIEW:......................................................... 6
5. REQUIREMENTS FOR IMPLEMENTATION: ........................... 7
6. PROGRAM FUNCTIONALITY: ................................................ 7
7. PROJECT IMPLEMENTATION: .............................................. 8
7.1. ......................................................................................... .
FIGURE .................................................................................... 8
2|Page
Declaration:
I, Noor Ahmad, hereby declare that the project title
“BMI Calculator in Python” has been completed by
me under the guidance and supervision of Sir Naveed
Iqbal and Sir Rehhan shah.
I would like to express my sincere gratitude to my
teacher’s for their invaluable guidance, support, and
encouragement throughout the entire duration of this
project. Their expertise and dedication have played a
crucial role in the successful completion of this
endeavor.
I would also like to extend my heartfelt thanks to my
parents, for their unwavering support, understanding,
and encouragement. Their belief in my abilities and
constant motivation have been a driving force behind
the successful completion of this project.
I am grateful for the opportunities provided by GPI
Sardar Ghari Peshawar for undertaking this project
3|Page
and for fostering an environment that encourages
academic and personal growth.
In conclusion, I affirm that this project is the result
of my own work, and any external assistance or
sources of information have been duly
acknowledged in the bibliography.
NOOR AHMAD
DIT Part-ii
GPI Sardar Ghari Peshawar
4|Page
Project Title: BMI Calculator in Python
Introduction:
The Body Mass Index (BMI) is a
fundamental metric widely used in healthcare and
personal wellness to assess an individual’s body
weight in relation to their height. As health
consciousness grows globally, there is an increasing
demand for accessible tools that enable individuals
to monitor and understand their health. This project
presents a BMI calculator implemented in Python,
offering a user-friendly and efficient way for users to
determine their weight status.
Possible Use Cases:
Personal Health Monitoring: Individuals can
use the BMI calculator for regular self-
assessment, allowing them to track changes in
their body weight and make informed decisions
about their health and lifestyle.
5|Page
Fitness and Wellness Apps: Integration into
fitness and wellness applications to provide users
with a quick and reliable method to assess their
BMI as part of their overall health and fitness
journey.
Clinical Assessments: Healthcare professionals
can use a similar tool during patient consultations
to quickly gauge an individual’s weight status,
facilitating efficient preliminary health
assessments.
Educational Tools: Inclusion in educational
programs and workshops to educate students and
the general public about the significance of BMI
in health assessment and the implications of
different weight categories.
Literature Review:
BMI is a widely accepted metric for assessing body
weight relative to height. The formula for BMI is
BMI=weight(kg) / (height(m))^2.
6|Page
Different BMI categories, including underweight,
normal weight, overweight, and obese, provide a
standardized framework for evaluating an
individual’s weight status. The implementation of
a BMI calculator in Python aligns with the
increasing demand for user-friendly, technology-
driven tools to promote personal health awareness.
Requirements for Implementation:
In this project we will use Python 3.1 programming
language, and for user interface we will be using
Graphical user interface for simplicity and
accessibility. For coding we have use PyCharm IDE
and for the implementation of graphical interface we
used “tkinter” library.
Program Functionality:
Accept user input for weight (in kilogram) and
height (in meters, feet’s or inches).
Calculate BMI using the formula.
7|Page
Categorize the BMI result into different weight
status categorizes.
Provide clear and informative output to the user.
Project Implementation:
To design the BMI calculator, we have to design I
Frame where we can provide two fields for Weight,
Height and a clickable button. The user will input the
weight and height after clicking the button the system
will calculate the results and print the results in on
the frame via label. See the below figure for details.
Figure
8|Page