GUI For Fitness Calculator: Bachelor of Technology in

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

GUI for Fitness Calculator

END-TERM REPORT

BACHELOR OF TECHNOLOGY

in

COMPUTER SCIENCE AND ENGINEERING

By:

S.no. Name Roll No. Registration no.


1. 27
2.

Courses Code: INT213

School of Computer Science and Engineering

Lovely Professional University


Phagwara, Punjab (India)

Objective

The primary objective of this project is to implement what we’ve learnt throughout
Introduction

The innovations in the field of science and technology has made our lives easy and
hence there is lack of physical activity which has made today’s generation prone to
different kind of health related issues. Therefore, it becomes important to take care
of our fitness and for that we need to keep track of our fitness, that’s where fitness
calculators come into play. A Fitness calculator is used to calculate the fitness
levels of an individual, and also suggests methods to improve it. This project is no
exception, it has been coded in python and comes with a graphical user interface to
facilitate the users. This project has 6 different modules which includes, BMI
Calculator, Vo2 Max Calculator, Report Generator, BMR Calculator, BFC
Calculator and Calorie Calculator. This project also includes SQL database
connectivity that helps the use to store their report and then fetch it later, when
required. Below given is the description of each module.

 BMI Calculator

The body mass index (BMI) or Quetelet index is a value derived from the
mass (weight) and height of an individual. The BMI is defined as the body
mass divided by the square of the body height, and is universally expressed
in

you’ll be prompted to the main window with a message ‘Record not found’.

 The Info Button

This button is present in the welcome screen which looks a blue ‘I’, it is
present next to every module button and on clicking upon it, you’ll get a
popup dialog box with the information regarding the module it is placed next
to. It is given with a purpose to let the users know the significance of each
module that we’ve provided. It looks like this (after clicking info next to
BMI).
GUI Screenshots:

1.WELCOME SCREEN:

2.BMI CALCULATOR (with input values)


3. VO2 MAX CALCULATOR (with input values)

4. STANDARD VALUES (on clicking ‘View Standard Values’)

5. BMR CALCULATOR (with input values)


6. REPORT GENERATOR (with input values)

7. GENERATED REPORT (after clicking ‘Generate Report’)


8. FETCH RECORD (on clicking ‘Fetch Button’ after entering ‘Name’)

9. BODY FAT CALCULATOR (with input values)


10. CALORIE CALCULATO R (with input values)

Source Code

from tkinter import*


import sys
from tkinter import messagebox
import sqlite3

x=sqlite3.connect("fc.db")
c=x.cursor()

class welcome(): #welcome window

def __init__(self, master):


self.master=master
self.master.geometry("500x500+500+180")
self.master.resizable(0,0)
self.master.title("Welcome")
self.master.configure(background="#e6ffcc")
photo=PhotoImage(file='hrt.gif')
self.limage=Label(self.master, image=photo,width=500, height=500)
self.limage.image=photo
self.limage.place(x=0, y=0)
self.title=Label(self.master, text="Welcome to Fitness Calculator", font=("Matura MT Script Capitals",
22), bg
if __name__=="__main__":
main();

Results

We finally got the end product as a ‘fitness calculator’ that includes all the
mentioned modules. We learnt how to make a GUI using Tkinter in Python and
also learnt to implement database connectivity using sqlite3.

• BFC will tell about the fat percentage in the body.

• BMR will tell the amount of energy needed while resting in a temperate
environment when the digestive system is inactive.
References

 https://www.calculator.net/fitness-and-health-calculator.html
 https://www.python-course.eu/index.php
 www.blog.pythonlibrary.org

You might also like