You are on page 1of 21

VELAMMAL VIDYALAYA SENIOR SECONDARY SCHOOL

KARUR

COMPUTER SCIENCE
PROJECT

Name : GIRIDAR P

Title : BMI CALCULATOR

Exam No.:

Under the Guidance of

Mr. Kishor Kumaar S

2023-24
VELAMMAL VIDYALAYA
SENIOR SECONDARY SCHOOL
KARUR
COMPUTER SCIENCE PROJECT

CERTIFICATE

This is to certify that this is the bonafide record of project


work done by Master. GIRIDAR P of Grade XII during the
academic year 2022-23.

Submitted for AISSCE COMPUTER SCIENCEPractical


Examination held on ____ / ___ / _______ at Velammal Vidyalaya
Senior Secondary School, Karur.
Date: ______________

Guide InternalExaminer

Principal External Examiner


ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends
largely on the encouragement and guidelines of many others. I take this
opportunity to express my gratitude to the people who have been instrumental in
the successful completion of this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.
I express my heartfelt gratitude to my parents for constant encouragement
while carrying out this project.
I gratefully acknowledge the contribution of the individuals who contributed
in bringing this project up to this level, who continues to look after me despite my
flaws,
I express my deep sense of gratitude to the luminary The Chairman,
Velammal Vidyalaya who has been continuously motivating and extending their
helping hand to us.
I express my sincere thanks to the academician The Principal, Velammal
Vidyalaya for constant encouragement and the guidance provided during this
project
I am overwhelmed to express my thanks to The Administrative Officer
and all staff members for providing me an infrastructure and moral support while
carrying out this project in the school.
My sincere thanks to Mr. Kishor Kumaar S, Master In-charge, A guide,
Mentor all the above a friend, who critically reviewed my project and helped in
solving each and every problem, occurred during implementation of the project.
The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
Reg. No.:
CONTENT

S.NO. PARTICULARS PAGE NO.

1 INTRODUCTION 5

2 OBJECTIVE 6

3 HARDWARE AND SOFTWARE DESCRIPTION 7

4 PROPOSED SYSTEM 8

5 WORKING DESCRIPTION 9

6 FRONT END DETAILS 10

7 BACK END DETAILS 11

8 SOURCE CODE 12

9 OUTPUT 19

10 CONCLUSION 23

11 BIBLIOGRAPHY 24

12 WEBLIOGRAPHY 25
BMI CALCULATOR

INTRODUCTION

Body mass index (BMI) is a measure of weight adjusted for height, calculated
as weight in kilograms divided by the square of height in meters (kg/m2). Although
BMI is often considered an indicator of body fatness, it is a surrogate measure of body
fat because it measures excess weight rather than excess fat.

A BMI Calculator accepts the weight and height of an individual and calculates
the Body Mass Index (BMI) of that person.

For Example, if the height and weight of a person are 155 cm and 57 kg. The BMI of
that person will be 23.73 (approx.), which signifies that the person is healthy.

Body Mass Index (BMI) is a measure of body fat on the basis of height and weight,
respectively.

On the basis of the BMI of an individual, the calculator returns a statement stating the
overall health of the person.
OBJECTIVE

The objective of this project is to apply the programming knowledge into a real- world

situation/problem and exposed how programming skills helps in developing a good software.

1. Write programs utilizing modern software tools.

2. Apply object oriented programming principles effectively when developing small to

medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. We will demonstrate a breadth of knowledge in computer science, as exemplified in the

areas of systems, theory and software development.

5. We will demonstrate ability to conduct a research or applied Computer Science project,

requiring writing and presentation skills which exemplify scholarly style in computer

science.
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 10 AND ABOVE

II. PROCESSOR : PENTIUM (ANY) OR AMD

ATHALON (3800+- 4200+ DUALCORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIAK8M800+8237R PLUS CHIPSET FOR

AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python
III. MySQL
PROPOSED SYSTEM

Today one cannot afford to rely on the fallible human beings of be really wants to stand

against today’s merciless competition where not to wise saying “to err is human” no longer

valid, it’s outdated to rationalize your mistake. So, to keep pace with time, to bring about the

best result without malfunctioning and greater efficiency so to replace the unending heaps of

flies with a muchsophisticated hard disk of the computer.

One has to use the data management software. Software has been an ascent in

atomizationvarious organizations. Many software products working are now in markets, which

have helped in making the organizations work easier and efficiently. Data management

initially hadto maintain a lot of ledgers and a lot of paperwork has to be done but now software

producton this organization has made their work fasterand easier. Now only this software has

to beloaded on the computer and work can be done.

This prevents a lot of time and money. Thework becomes fully automated and any

information regarding the organization can beobtained by clicking the button. Moreover,

nowit’s an age of computers of and automatingsuch an organization gives the better look.
WORKING DESCRIPTION

The systems development life cycle is a projectmanagement technique that divides


complexprojects into smaller, more easily managedsegments or phases. Segmenting
projectsallows managers to verify the successfulcompletion of project phases before
allocatingresources to subsequent phases.
Software developmentprojects typically include initiation, planning,design,
development, testing, implementation,and maintenance phases. However, the phasesmay be
divided differently depending on theorganization involved.
For example, initialproject activities might be designated asrequest, requirements-
definition, and planningphases, or initiation, concept-development,and planning phases. End
users of the systemunder development should be involved inreviewing the output of each
phase to ensurethe system is being built to deliver the neededfunctionality.
FRONT END DETAILS

Python is an interpreter, object-oriented, high-level programming language with


Dynamic semantics. Its high-level built in data structures, combined with dynamic typing and
dynamic binding, make it very attractive for Rapid Application Development, as well as for use
as a scripting or glue language to connect existing components together.

Python's simple, easy to learn syntax emphasizes readability and therefore reduces the
cost of program maintenance. Python supports modules and packages, which encourages
program modularity and code reuse. The Python interpreter and the extensive standard library
are available in source or binary form without charge for all major platforms, and can be freely
distributed.

Often, programmers fall in love with Python because of the increased productivity it
provides. Since there is no compilation step, the edit-test-debug cycle is incredibly fast.
Debugging Python programs is easy: a bug or bad input will never cause a segmentation fault.
Instead, when the interpreter discovers an error, it raises an exception. When the program
doesn't catch the exception, the interpreter prints a stack trace.

A source level debugger allows inspection of local and global variables, evaluation of
arbitrary expressions, setting breakpoints, stepping through the code a line at a time, and so
on. The debugger is written in Python itself, testifying to Python's introspective power On the
other hand, often the quickest way to debug a program is to add a few print statements to the
source the fast edit-test-debug cycle makes this simple approach very effective.
BACK END DETAILS

A database system is basically a computer based record keeping system. The


collection of data, usually referred to as the database, contains information about one
particular enterprise. It maintains any information that may be necessary to the decision-
making processes involved in the management of that organization.

A database may also be defined as a collection of interrelated data stored together to


serve multiple applications; the data is such stored so that it is independent of programs which
use the data; a common and controlled approach is used in adding new data and in modifying
and retrieving existing data within the database. The data is structured so as to provide a
foundation for future application development.

The intention of a database is that the same collection of data should serve as many
applications as possible. Hence, a database is often conceived of as the repository of
information needed for running certain functions in a corporation or organization. Such a
database would permit not only the retrieval of data but also the continuous modification of
data needed for control of operations. It may be possible to search the database to obtain
answers to queries or information for planning purposes.
SOURCE CODE

import mysql.connector as sql

from tkinter import *

from tkinter.ttk import Combobox

window=Tk()

l1=Label(window,text="BMI
INDEX",bg='red',fg='white',pady=50,font=('arial bold',50))

l1.pack()

conn=sql.connect(host='localhost',user='root',passwd='1234',database=
'bmi')

cur=conn.cursor()

def clear():

for i in range (65):

print()

def bmi():

global N

global A

N=input("Enter your Name: ")

A=input("Enter your Age: ")


def pno():

global pno

pno=int(input("Enter your phone number: "))

x=str(pno)

l=['6','7','8','9']

if len(x)==10 and x[0] in l:

pass

else:

print("Invalid Mobile NO")

pno()

pno()

while True:

print("--------------------Choose the preferable measurement


to enter your height---------------------------- \n 1.Meteres \n
2.Feets")

H=input("Enter the option: ")

if H=="1":

print("--Looks like you are comfortable with METERS--")

M=float(input("Enter Your Height: "))

MT=M

break

elif H=="2":

print("--Looks like you are comfortable with FEET--")

F=float(input("Enter Your Height: "))


MT=F

MT=F*0.3048

break

else:

print("OOPS LOOKS LIKE YOU HAVE ENTERED THE WRONG OPTION


")

while True:

print("--------------------Choose the preferable measurement


to enter your Weight---------------------------- \n 1.Kilograms \n
2.Pounds")

W=input("Enter the option: ")

if W=="1":

print("--Looks like you are comfortable with


KILOGRAMS--")

KG=float(input("Enter Your Weight: "))

KG2=KG

break

elif W=="2":

print("--Looks like you are comfortable with POUNDS--")

PO=float(input("Enter Your Weight: "))

KG2=PO

KG2=PO*0.453592

break

else:
print("OOPS LOOKS LIKE YOU HAVE ENTERED THE WRONG OPTION
")

print("HELLO",N)

print("AGE:",A)

print("Your HEIGHT in METERS: ",MT)

print("Your WEIGHT in KILOGRAMS: ",KG2)

bm=MT**2

bmi=KG2/bm

print("Your BMI is: ",bmi)

if bmi > 25.0:

print("SEEMS LIKE YOU ARE LITTLE OVER WEIGHT \n START YOUR


WORKOUTS AS SOON AS POSSIBLE")

elif bmi < 18.5:

print("UNDER WEIGHT \n SEEMS LIKE YOU ARE UNDER WEIGHT \n


START YOUR WEIGHT GAINING PROCESS ASAP")

else:

print("SEEMS LIKE YOU ARE NORMAL \n LEAD A HAPPY LIFE :)")

sql=("insert into bmi values(%s,%s,%s,%s,%s)")

val=(N,A,MT,KG2,bmi)

cur.execute(sql,val)

conn.commit()
def login():

print("----CHOOSE AN OPTION----")

print("1.USER \n2.ADMIN")

log=input("Enter the option \n")

while True:

if log=="1":

print("Hello")

bmi()

print("Thankyou!!")

quit()

elif log=="2":

usrn=("12345")

pasw=("123456")

adm=input("Enter username\n")

adm2=input("Enter Password\n")

while True:

if adm=="12345" and adm2=="123456":

print("ADMIN LOGIN SUCCESSFUL")

print("--ADMIN OPTIONS--")

print("1.USE BMI CALCULATOR\n2.CHECK DATABASE")

opt=input("Enter an Option \n")

if opt=="1":
print("PROCESSING....")

clear()

bmi()

break

elif opt=="2":

print("PROCESSING....")

a=cur.execute("select * from bmi")

a=cur.fetchall()

print(a)

break

else:

print("wrong option\n Enter the correct


option")

break

else:

print("WRONG INPUTS")

print("TRY IT ONCE MORE")

login()

break

else:

print("Wrong Inputs!!")

login()

login()
OUTPUT
CONCLUSION

It was a wonderful and learning experience for us while working on this project.

This software is very easy to use so all educational institute can use this frequently

So, we can hope that our software will be very popular and get sponsors to develop in
future.
BIBLIOGRAPHY

1. Computer science With Python – Class XI By : Sumita Arora


2. Computer science With Python – Class XII By : Sumita Arora
3. Computer science With Python – Class XI By : Preeti Arora
4. Computer science With Python – Class XII By : Preeti Arora
WEBLIOGRAPHY

1. Website: https://www.csiplearninghub.com
2. Website: https://www.learnpython4cbse.com
3. Website: https://www.python4csip.com
4. Website: https://www.w3schools.com/
5. Website: https://www.w3resource.com/

***

You might also like