0% found this document useful (0 votes)
38 views38 pages

FITNESS CENTRE MANAGEMENT SYSTEM (Final)

Uploaded by

phoenix22614
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)
38 views38 pages

FITNESS CENTRE MANAGEMENT SYSTEM (Final)

Uploaded by

phoenix22614
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/ 38

VELAMMAL VIDHYASHRAM

SURAPET

COMPUTER SCIENCE PROJECT


FITNESS CENTRE MANAGEMENT
SYSTEM

NAME: HARIKASH. L
CLASS: XII A3
ROLL NUMBER:
BATCH NO.
DATE.

SSCE -2024 -2025

1
BONAFIDE CERTIFICATE

This is to certify that this COMPUTER SCIENCE Project on the topic

"FITNESS CENTRE MANAGEMENT” has been successfully completed by

HARIKASH. L of class XII A3, Roll.no ... ……….at Velammal Vidhyashram, Surapet,

for the partial fulfilment of Computer Science Practical examination conducted by

Senior School Certificate Examination-CBSE, New Delhi for the academic Year

2024 - 2025.

Date: …………………….

Signature of Principal Teacher incharge

Signature of the Signature of the

Internal Examiner External Examiner


2
ACKNOWLEDGEMENT

Apart from the efforts taken by me, the success of the 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


the strength to complete the project successfully.

I express my heartfelt gratitude to my parents for the constant


encouragement while carrying out this project.

I express my deep sense of gratitude to the luminary, the Principal


of Velammal Vidhyashram, who has been continuously motivating and
extending a helping hand to us.

My sincere thanks to Mrs. Shanthi Siddheswaran a guide, mentor,


above all a friend, who critically reviewed my project and guided me during
the implementation of the project.

The guidance and support received from all the members who
contributed, was vital for the success of the project. I am grateful for their
constant support and help.

Signature of the student

3
TABLE OF CONTENT

S NO. TOPICS PAGE


NO.

1 5
ABSTRACT

2 SYSTEM CONFIGURATION 5

3 INTRODUCTION 6

4 OBJECTIVES OF THE PROJECT 6

PROPOSED SYSTEM
5 7

6 LIBRARIES AND FUNCTIONS USED 7

7 MYSQL QUERIES USED IN THIS PROJECT 8

8 SOURCE CODE 11

9 OUTPUT (SCREENSHOT) 20

CONCLUSION
10 38

BIBILOGRAPHY
11 38

4
ABSTRACT
In many Gyms, the payment receipts are in paper format. So, it is very difficult
for both gym members to keep all the paper receipts safely and to gym trainer to
keep reminding for the fee receipts. Sometimes it creates a trouble when members
lost their receipts. The other problem that can be faced by a gym owner is that if
he/she wants to inform any message related to working or non working days of
gym, manually sending message become difficult. If there is online application
available these problems can be solved.

SYSTEM CONFIGURATION

Hardware configuration:
Microsoft windows 10 professional/windows 8/windows 8.2:
 Processor : Intel Core i3 or equivalent
 Memory : 2 GB (32-bit), 4 GB (64-bit)
 Disk space : 1.5 GB of free disk space

Software Requirements:

Front End : HTML5, CSS3, Bootstrap


Back End : PHP, MYSQL
Control End : Angular Java Script

Android Tools:

IDE: Android Studio


Android Emulator
XAMPP 8.1 – 64 bits

PHP Tools:

XAMPP 8.1 – 64 bits

5
INTRODUCTION

 This helps in making work easy for the gym staff which is lengthy and a little bit
complex because of doing it on paper.
 This website also helps the member of a gym, through this website the members
can track their reports. The aim of creating this project is to bring every manual
activity of the gym to the website or on the online platform.
 It also allows guest users to apply for Gym membership directly via the website.
 Trainers of the gym also can track their attendance and work out details of
members via this website.
 Trainers can prepare workout schedules and diet charts for members via this
website.

OBJECTIVES OF THE PROJECT


 The main objective of the project is to develop software that facilitates the
data storage, data maintenance and its retrieval for the gym in an igneous way.
 To store the record of the customers, the staff that has the privileges to access,
modify and delete any record and finally the service, gym provides to its
customers.
 Also, only the staff has the privilege to access any database and make the
required changes, if necessary.
 To develop easy-to-use software which handles the customer-staff
relationship in an effective manner.
 To develop a user-friendly system that requires minimal user training. Most
of features and function are similar to those on any windows platform.

6
PROPOSED SYSTEM
In the Fitness centre management system, after the planning and analysis phase
of the system gets completed. Then the next phase required to transform the
collected required system information into a structural blueprint which will serve
as a reference while constructing the working system. This is a fully-fledged
system that will be the backbone of the whole management of the gym so ignoring
the risk or error is not an option as later it can make a greater form of itself. So,
it is better to minimize the problems faced by both staff and the manager in the
Organization.

LIBRARIES AND FUNTIONS USED


 mysql.connector - MySQL Connector/Python enables Python programs to
access MySQL databases, using an API that is compliant with the Python
Database API Specification v2.0 (PEP 249). It is written in pure Python and
does not have any dependencies except for the Python Standard Library.
 datetime – supplies classes for manipulating dates and times
 connect_db() -Function used connect python with SQL.
 cursor() - used to make the connection for executing SQL queries
 execute() - dynamically execute Python programs that are passed as either a
string or an object code to the function
 commit() - saves all the modifications made since the last commit

USED FUNCTIONS:

 add_member() - Registering a new member.


 add_equipment() - To register the equipment and its quantity present.
 add_trainer() - To add the trainer details.
 book_session() - Training offered to customers in scheduled timing.
 make_payment() - FEES for the fitness training.
 display_members() – To display detail of the members.
 display_equipment() - To display the equipment present.
 display_trainers() - To show the details of trainers.
 display_sessions() – To display the schedule of customers.
 display_payments() – To display the FEES payment details

7
MYSQL QUERIES USED IN THIS PROJECT

CREATE DATABASE fitness_center;

USE fitness_center;

CREATE TABLE members (

id INT AUTO_INCREMENT,

name VARCHAR(255),

email VARCHAR(255),

phone VARCHAR(20),

membership_type VARCHAR(50),

joining_date DATE,

PRIMARY KEY (id));

CREATE TABLE equipment (

id INT AUTO_INCREMENT,

equipment_name VARCHAR(255),

quantity INT,

PRIMARY KEY (id));

CREATE TABLE trainers (

id INT AUTO_INCREMENT,

name VARCHAR(255),

8
specialization VARCHAR(255),

experience INT,

PRIMARY KEY (id));

CREATE TABLE sessions (

id INT AUTO_INCREMENT,

member_id INT,

trainer_id INT,

session_date DATE,

session_time TIME,

FOREIGN KEY (member_id) REFERENCES members(id),

FOREIGN KEY (trainer_id) REFERENCES trainers(id),

PRIMARY KEY (id));

CREATE TABLE payments (

id INT AUTO_INCREMENT,

member_id INT,

payment_date DATE,

payment_amount FLOAT,

FOREIGN KEY (member_id) REFERENCES members(id),

PRIMARY KEY (id));

9
STRUCTURE OF THE TABLE

10
SOURCE CODE

import mysql.connector
from mysql.connector import Error
from datetime import date, datetime

# Database connection function


def connect_db():
try:
conn = mysql.connector.connect(
host='localhost',
user='root',
password='hari22614',
database='fitness_center'
)
return conn
except Error as e:
print(f"Error connecting to database: {e}")

# Function to add member


def add_member(name, email, phone, membership_type):
conn = connect_db()

11
cursor = conn.cursor()
query = "INSERT INTO members (name, email, phone,
membership_type, joining_date) VALUES (%s, %s, %s, %s,
%s)"
val = (name, email, phone, membership_type, date.today())
cursor.execute(query, val)
conn.commit()
conn.close()

# Function to add equipment


def add_equipment(equipment_name, quantity):
conn = connect_db()
cursor = conn.cursor()
query = "INSERT INTO equipment (equipment_name,
quantity) VALUES (%s, %s)"
val = (equipment_name, quantity)
cursor.execute(query, val)
conn.commit()
conn.close()

# Function to add trainer


def add_trainer(name, specialization, experience):
conn = connect_db()

12
cursor = conn.cursor()
query = "INSERT INTO trainers (name, specialization,
experience) VALUES (%s, %s, %s)"
val = (name, specialization, experience)
cursor.execute(query, val)
conn.commit()
conn.close()

# Function to book session


def book_session(member_id, trainer_id, session_date,
session_time):
conn = connect_db()
cursor = conn.cursor()
query = "INSERT INTO sessions (member_id, trainer_id,
session_date, session_time) VALUES (%s, %s, %s, %s)"
val = (member_id, trainer_id, session_date, session_time)
cursor.execute(query, val)
conn.commit()
conn.close()

# Function to make payment


def make_payment(member_id, payment_date,
payment_amount):
conn = connect_db()
13
cursor = conn.cursor()
query = "INSERT INTO payments (member_id,
payment_date, payment_amount) VALUES (%s, %s, %s)"
val = (member_id, payment_date, payment_amount)
cursor.execute(query, val)
conn.commit()
conn.close()

# Function to display members


def display_members():
conn = connect_db()
cursor = conn.cursor()
query = "SELECT * FROM members"
cursor.execute(query)
result = cursor.fetchall()
for row in result:
print(row)
conn.close()

# Function to display equipment


def display_equipment():
conn = connect_db()
cursor = conn.cursor()
14
query = "SELECT * FROM equipment"
cursor.execute(query)
result = cursor.fetchall()
for row in result:
print(row)
conn.close()

# Function to display trainers


def display_trainers():
conn = connect_db()
cursor = conn.cursor()
query = "SELECT * FROM trainers"
cursor.execute(query)
result = cursor.fetchall()
for row in result:
print(row)
conn.close()

# Function to display sessions


def display_sessions():
conn = connect_db()
cursor = conn.cursor()

15
query = "SELECT * FROM sessions"
cursor.execute(query)
result = cursor.fetchall()
for row in result:
print(row)
conn.close()

# Function to display payments


def display_payments():
conn = connect_db()
cursor = conn.cursor()
query = "SELECT * FROM payments"
cursor.execute(query)
result = cursor.fetchall()
for row in result:
print(row)
conn.close()

# Main menu
while True:
print("Fitness Center Management System")
print("1. Add Member")

16
print("2. Add Equipment")
print("3. Add Trainer")
print("4. Book Session")
print("5. Make Payment")
print("6. Display Members")
print("7. Display Equipment")
print("8. Display Trainers")
print("9. Display Sessions")
print("10. Display Payments")
print("11. Exit")

choice = input("Enter your choice: ")

if choice == "1":
name = input("Enter member name: ")
email = input("Enter member email: ")
phone = input("Enter member phone: ")
membership_type = input("Enter membership type: ")
add_member(name, email, phone, membership_type)
elif choice == "2":
equipment_name = input("Enter equipment name: ")
quantity = int(input("Enter quantity: "))

17
add_equipment(equipment_name, quantity)
elif choice == "3":
name = input("Enter trainer name: ")
specialization = input("Enter specialization: ")
experience = int(input("Enter experience: "))
add_trainer(name, specialization, experience)
elif choice == "4":
member_id = int(input("Enter member ID: "))
trainer_id = int(input("Enter trainer ID: "))
session_date = input("Enter session date (YYYY-MM-DD):
")
session_time = input("Enter session time (HH:MM:SS): ")
book_session(member_id, trainer_id, session_date,
session_time)
elif choice == "5":
member_id = int(input("Enter member ID: "))
payment_date = input("Enter payment date (YYYY-MM-
DD): ")
payment_amount = float(input("Enter payment amount: "))
make_payment(member_id, payment_date,
payment_amount)
elif choice == "6":
display_members()
elif choice == "7":
18
display_equipment()
elif choice == "8":
display_trainers()
elif choice == "9":
display_sessions()
elif choice == "10":
display_payments()
elif choice == "11":
print("Exiting...")
break
else:
print("Invalid choice. Please try again.")

19
OUTPUT

20
21
22
23
24
25
26
27
28
29
30
31
COUSTOMER DETAILS:

TRAINERS WORKING IN THE CENTRE:

32
EQUIPMENT DETAILS:

33
SESSION TIMING DETAILS OF COUSTOMERS:

PAYMENT DETAILS:

34
SQL REPORT:

35
36
37
CONCLUSION
Fitness centre management system project objective of this project was to build
a program for maintaining fitness centre management system project details of
all fitness centre management system project members, employees and inventor.
Fitness centre management system project system developed is able to meet all
fitness centre management system project basic requirements. Fitness centre
management system project management of fitness centre management system
project records (both members and employees) will be also benefited by fitness
centre management system project proposed system, as it will automate fitness
centre management system project whole procedure, which will reduce fitness
centre management system project workload.

BIBILOGRPHY

Computer Science With Python by Sumita Arora for Class 11& 12.

https://www.w3schools.com/python/

https://www.tutorialspoint.com/python/index.htm

38

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy