0% found this document useful (0 votes)
16 views15 pages

Bmi

A MINI PROJECT

Uploaded by

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

Bmi

A MINI PROJECT

Uploaded by

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

A

PYTHON PROJECT REPORT

On

"BMI CALCULATOR"

Submitted in partial fulfillment of the requirements for the award of the degree of

BACHELOR OF TECHNOLOGY
In

CSE (AI&DS)

BY

23BH5A7207 P.ABHISHEK

22BH1A7228 S.GANGACHARAN

23BH5A7204 K.MAHESH

22BH1A7216 MD.FARAAZ SHAIK

UNDER THE GUIDENCE OF

DEPARTMENT OF CSE(AI&DS)

ST.MARY’S ENGNEERING COLLEGE


(Approved by AICTE, NEW DELHL & Affiliated to JNTU-HYDERABAD, Accredited by NAAC)

Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri (D), Telangana -508284

[2023-24]
CERTIFICATE
This is to certify that project report entitled "BMI CALCULATOR” is bonafide
work carried out in the II/II semester by P.ABHISHEK(23BH5A7207),
S.GANGACHARAN(22BH1A7228), K.MAHESH(23BH5A7204),MD.FARAZ
SHAIK(22BH1A7216) in partial fulfillment award of Bachelor of Technology
in CSE (AI&DS) from St. Mary's Engineering College during the academic year
2023-2026.

INTERNAL GUIDE HEAD OF THE DEPARTMENT

EXTERNAL EXAMINER
ACKNOWLEDGEMENT

The satisfaction that accompanies the successful completion of this project


would be incomplete without the mention of the people who made it possible.
We consider it as a privilege to express our gratitude and respect to all those
who guided us in the completion of the project.

We are thankful to our internal guide _____________, in the St. Mary's


Engineering College for having been of a source encouragement and for
insisting on vigour to do this project work.

We are obliged to Dr. K. Suresh Kumar, Head of the Department of


CSE(AI&DS), St. Mary's Engineering College for his guidance and
suggestions throughout the project work.

We take this opportunity to express a deep sense of gratitude to Dr. T.N.


Srinivas Rao, Principal of St. Mary's Engineering College for allowing us to do
this project and for this affectionate encouragement in presenting this
project work.

We convey our sincere thanks to Sri Rev. K.V.K RAO, Chairman of St. Mary's
Engineering College for giving us a learning environment to grow out self
personally as well as professionally.

We would like to express our thanks to all staff members who have helped
us directly and indirectly in accomplishing this project work. We also
extended our sincere thanks to our parents and friends for their moral
support throughout the project work. Above all, we thank god almighty for
his manifold mercies in carrying out this project work successfully.

P.ABHISHEK 23BH5A7205

S.GANGACHARAN 22BH1A7228

K.MAHESH 23BH5A7204

MD.FARAZ SHAIK 22BH1A7216


DECLARATION

This is to certify that the work report in the thesis titled, "BMI CALCULATOR",
submitted to the Department of CSE (AI&DS), St. Mary's Engineering College
in fulfillment of degree for the award of Bachelor of Technology, is a
bonafide work done by us. No part of the thesis is copied from books,
journals, or the internet and wherever the portion is taken, the same has
been duly referred in the text. The reported results are based on the project
work entirely done by us and not copied from any other sources. Also, we
declare that the matter embedded in this thesis has not been submitted by
us in full or partially there for the award of any degree from any other
institution or university previously

P.ABHISHEK -23BH5A7207

S.GANGACHARAN -22BH1A7228

K.MAHESH -23BH5A7204

MD.FARAZ SHAIK -22BH1A7216


INDEX
ABSTARCT 1

LIBRARY MANAGEMENT SYSTEM PROJECT

INTRODUCTION 2

PROBLEM STATEMENT 3

OBJECTIVES 4

SOFTWARE REQUIREMENTS 5

SOFTWARE ENVIRONMENT 6

COMPLETE CODE 7

8
SAMPLE OUTPUT

CONCLUSION 9
Abstract

BMI Calculator
The BMI (Body Mass Index) Calculator is a
Python script designed to calculate BMI
based on user input for height and weight.
Additionally, it interprets the calculated BMI
value to provide the corresponding category,
such as "Underweight," "Normal,"
"Overweight," or "Obese." This calculator
offers a straightforward interface for users to
determine their BMI and understand their
weight status based on established BMI
categories.
Key features include calculating BMI using the
BMI formula and interpreting the BMI value to
categorize it into predefined weight status
categories. The BMI Calculator aims to
provide users with valuable insights into their
weight status, promoting awareness of
healthy weight management practices.
Introduction

The BMI Calculator project addresses the


need for a simple yet effective tool to
calculate BMI and assess weight status.
BMI is a widely used indicator of body
fatness and is calculated based on an
individual's height and weight. By
categorizing BMI values into different
weight status categories, this calculator
helps individuals understand their weight
status relative to established norms.
The implementation of the BMI Calculator
utilizes Python, a versatile and beginner-
friendly programming language. The
script prompts users to input their height
and weight, calculates BMI using the
standard BMI formula, and interprets the
BMI value to provide meaningful feedback
on weight status.
Problem Statement
Many individuals struggle to assess their
weight status accurately, leading to
challenges in adopting healthy lifestyle
choices. While BMI is a commonly used
measure of body fatness, calculating BMI
manually or interpreting the results can be
confusing for some individuals. There is a
need for a user-friendly tool that simplifies the
BMI calculation process and provides clear
guidance on weight status interpretation.
Objective

The BMI Calculator project aims to:


 Facilitate BMI Calculation: Provide users
with a convenient tool to calculate BMI
based on height and weight inputs.
 Offer Weight Status Interpretation:
Categorize BMI values into predefined
weight status categories to help users
understand their weight status.
 Promote Health Awareness: Raise
awareness of healthy weight management
practices by providing users with valuable
insights into their weight status.
By achieving these objectives, the BMI
Calculator empowers individuals to make
informed decisions about their health and
encourages them to adopt healthy lifestyle
habits.
Software Requirements
 Python 3.6+: The core programming
language for developing and running
the BMI Calculator script.
Software Environment

 Operating System: The BMI Calculator


script is compatible with major
operating systems, including Windows,
macOS, and Linux.
 Integrated Development Environment
(IDE): Recommended IDEs include
PyCharm, Visual Studio Code, or any
text editor suitable for Python
development.
 Command-Line Interface: Users
interact with the BMI Calculator
through the command-line interface
(CLI), providing height and weight
inputs and receiving BMI results and
weight status interpretations.
Complete Code
def calculate_bmi(height, weight):
"""
Calculate BMI (Body Mass Index) using height (in meters) and weight (in kilograms).
Formula: BMI = weight (kg) / (height (m) * height (m))
"""
return weight / (height ** 2)

def interpret_bmi(bmi):
"""
Interpret BMI value and provide corresponding category.
"""
if bmi < 18.5:
return "Underweight"
elif 18.5 <= bmi < 25:
return "Normal"
elif 25 <= bmi < 30:
return "Overweight"
else:
return "Obese"

def main():
print("Welcome to the BMI Calculator!")
print("Please enter your height and weight to calculate your BMI.")

# Input height in meters


height = float(input("Enter your height in meters (e.g., 1.75): "))

# Input weight in kilograms


weight = float(input("Enter your weight in kilograms (e.g., 70): "))

# Calculate BMI
bmi = calculate_bmi(height, weight)

# Interpret BMI
category = interpret_bmi(bmi)

# Display results
print(f"Your BMI is: {bmi:.2f}")
print(f"You are in the '{category}' category according to BMI.")

if __name__ == "__main__":
main()
Sample Output
Conclusion
The BMI Calculator project provides a
valuable tool for individuals to assess their
weight status based on BMI calculations. By
simplifying the BMI calculation process and
offering clear interpretations of BMI values,
this calculator promotes health awareness
and encourages users to make informed
decisions about their weight management
goals. With its user-friendly interface and
accurate results, the BMI Calculator serves as
an essential resource for individuals seeking
to maintain a healthy lifestyle.

You might also like