GYM MANAGEMENT CS Project
GYM MANAGEMENT CS Project
VIRUDHUNAGAR
COMPUTER SCIENCE
PROJECT REPORT
2024-2025
Submitted by,
Name:M.siranjeevi
CLASS-XII ‘a’
ROLL
NO.-23
CERTIFICATE
This is to certify that M.siranjeevi (Reg. no. ) of class XII ‘a’
successfully completed the project work on Hotel Management in
python programming language during the year 2024-2025 in
partial fulfillment of computer science practical examination
conducted by SSCE.
ABSTRACT
The Gym Management System is an innovative software
application designed to optimize the administration of fitness
centers. This project leverages Python programming and MySQL
database integration to facilitate the management of gym
operations, including trainer and member information, financial
records, and user authentication.
Key features of the system include the ability to add, modify,
and remove trainers and members, along with updating
membership plans and handling secure login processes. The
user-friendly interface ensures efficient navigation, allowing
gym staff to quickly access and manage essential data.
This system not only streamlines administrative tasks but also
enhances the overall user experience by providing timely
information and efficient service. Ultimately, the Gym
Management System serves as a vital tool for fitness centers
aiming to improve operational efficiency and member
satisfaction.
INDEX
Hardware:-
RAM OF 512 Mb
Hard drive of 500Mb
Software:-
IDLE (PYTHON 3.12) 64-bits
MySQL 8.0
WINDOWS 10
TECHNOLOGY USED
PYTHON
There are two major Python versions- Python 2 and Python 3. Both are
quite different. Python is an interpreted, 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.
MYSQL
MySQL is the world's most popular open source database. With its
proven performance, reliability and ease-of-use, MySQL has become
the leading database choice forweb-based applications, used by high
profile web properties including Facebook, Twitter, YouTube, Yahoo!
and many more.
Fees table:
Login table:
Member table:
Sno table:
Trainer table:
SOURCE CODE
import mysql.connector
print("""
_________________________________
GYM MANAGEMENT
_________________________________
""")
mycursor = mydb.cursor()
mycursor.execute("USE gym")
mydb.commit()
# Inserting initial data
def initialize_data():
if not mycursor.fetchall():
mydb.commit()
if not mycursor.fetchall():
mydb.commit()
if not mycursor.fetchall():
mydb.commit()
initialize_data()
def login():
if mycursor.fetchone():
print("Login successful!")
return True
else:
return False
def modify_info():
while True:
print("""
1. Plans
2. Trainer Info
3. Member Info
4. Go Back
""")
if ch == 1: # Modify Plans
print("""
1. Platinum
2. Gold
3. Silver
""")
if ch2 == 1:
elif ch2 == 2:
mydb.commit()
elif ch2 == 3:
mydb.commit()
trainer = mycursor.fetchone()
if trainer:
print("""
1. Name
2. Age
3. Gender
4. Salary
""")
if modify_choice == 1:
name = input("Enter updated name: ")
mydb.commit()
elif modify_choice == 2:
mydb.commit()
elif modify_choice == 3:
mydb.commit()
elif modify_choice == 4:
mydb.commit()
else:
member = mycursor.fetchone()
if member:
print("""
1. Name
2. Gender
3. Category
""")
if modify_choice == 1:
mydb.commit()
elif modify_choice == 2:
mydb.commit()
elif modify_choice == 3:
print("""
1. Platinum
2. Gold
3. Silver
""")
fees = mycursor.fetchone()
if category_choice == 1:
category = "Platinum"
amount = fees[2]
elif category_choice == 2:
category = "Gold"
amount = fees[1]
elif category_choice == 3:
category = "Silver"
amount = fees[0]
mydb.commit()
else:
elif ch == 4: # Go Back
break
def add_trainer():
while True:
mydb.commit()
trainer_id = mycursor.fetchone()[0]
if another.lower() != 'y':
break
def add_member():
while True:
print("""
""")
fees = mycursor.fetchone()
if plan_choice == 1:
category = 'Platinum'
amount = fees[2]
elif plan_choice == 2:
category = 'Gold'
amount = fees[1]
elif plan_choice == 3:
category = 'Silver'
amount = fees[0]
mydb.commit()
member_id = mycursor.fetchone()[0]
if another.lower() != 'y':
break
def remove_trainer():
while True:
mydb.commit()
if another.lower() != 'y':
break
def remove_member():
while True:
mydb.commit()
if another.lower() != 'y':
break
logged_in = True
while logged_in:
print("""
1. Add Trainer
2. Add Member
3. Remove Trainer
4. Remove Member
5. Modify Info
6. Change Password
7. Logout
""")
add_trainer()
add_member()
remove_trainer()
remove_member()
mydb.commit()
logged_in = False
OUTPUT SCREENS
GYM MANAGEMENT:
Logging In:
Adding Trainer:
Adding Member:
Removing Trainer:
Removing member:
Modifying :
1. Modifying plans:
2. Modifying trainer:
Modifying trainer’s name:
Modifying trainer’age:
3. Modifying member:
Modifying member’s name:
Modifying member’s gender:
Modifying member’s category:
4. Going back from modifying:
Changing password:
logging out:
CONCLUSION
While developing this project, the Gym Management System teaches
us how to effectively manage gym operations, including trainer and
member management. This system, created using Python, provides a
clear structure for handling essential tasks while visualizing data for
better analysis.