Professional Documents
Culture Documents
Submitted by
This is to certify that the work present in this Project entitled “SRM GYM
MANAGEMENT SYSTEM” has been carried out by Velivela Ram Charan (Leader),
Parikala Sai Ganesh , Ramisetti Lakshmi Narasimha Naidu , Yenugula Vishnu
Vardhan , Jaladi Likhit Kumar under our supervision. The work is genuine, original,
and suitable for submission to the SRM University – AP for the award of Bachelor of
Technology in School of Engineering and Sciences.
Supervisor
(Signature)
Subhankar Ghatak ,
PROFESSOR,
SRM UNIVERSITY AP.
Co-supervisor
(Signature)
Prof. / Dr. [Name]
Designation,
Affiliation.
TABLE OF CONTENTS:
TITLE - 1
CERTIFICATE - 2
TABLE OF CONTENTS - 3
INTRODUCTION - 4
ABSTRACT - 5
LIST OF FIGURES - 7
MODULES - 8
DESCRIPTION - 9
ARCHITECTURE - 12
STEPS - 14
CODE - 15
CONCLUSION - 32
INTRODUCTION:
Our Gym Management Software is a gym and health club membership
management system. You can keep records on your members, their memberships,
and have quick and easy communication between you and your members. Gym
Management also includes a booking system, point of sale, banking, accounting,
concessions and has a range of reports that help in the management of your club.
Our Gym management Software provides lots of functions such data entry of
customer, keeping records of all the things about customer’s fees, plan, and physical
fitness and timing which help to provide good quality of services to customer from
Gym managers.
In this proposed system also provide the total information about machinery
and data of coaches is also stored in it. Services provided by Gym are also handled
by this system.
ABSTRACT
Gym Management System is an online service that can be setup for your gym
to help manage classes, memberships, receive payments (merchant and cash), keep
track with detailed statistics, customer management, surveys and it even has an
online store so you can sell products to your customers.
It’s simple, it’s effective and it’s the way customers want their gym!
Manage customers
Complete payment statistics with downloadable content to excel and csv file
format.
Class management
Customers can see their own statistics and payment history. Complete Online Store
for your products, membership plans & passes
LIST OF FIGUERES
- Main Screen
- Admin Visibility
- User Visibility
Modules
● Login system
● Registration activities of the member
○ Join a Gym.
○ Quit Gym.
○ Edit User Profile.
○ Create Membership
○ Display All Records
○ Search Particular Record
○ Edit Membership Details
○ Delete Membership
● Issuing the timetable of batch on system
● Easy payment options
Description
1. Login system
The Gym Management System first activates the login form. Here the admin enters
the User name and password and our system starts the authentication process in
which the username and password are matched with the existing username and
password in the database. If the password matches then it is allowed to the main
page else it warns the user for Invalid User name and password.
After successful authentication the system activates menus. The activity log
also prepared for failures and security.
Join a Gym
With the help of this menu option, the new users who want to join the gym
can register themself. After choosing the options 1st then the software will ask
the user to enter the following details:
After entering all the above information the trainer will get allotted to the user
and also the registration will be done successfully.
Quit Gym:
If the user’s mind changes or the user wanted to change the gym then he or
she can quit the gym anytime by choosing the menu option 2. After choosing
menu option 2 the software will ask you to enter the member number. And in
a fraction of a few seconds, the member will be deleted from the software.
Create Member:
If the gym manager wants to add a membership for the new joiner then he
should select the menu option 1. After selecting 1st option the software will
ask admin to enter information such as member number, Name of the
member, Enter contact number, Gold or Silver Membership, Preferred time
slot. After entering all the information the trainer will be allocated
automatically and the record will be added successfully.
If the gym manager wants to display all the records or the memberships then
after selecting the 2nd option all the records will be displayed. The
information such as Member code, Name, Category, Fee, Contact and the
Timings will be displayed.
This software comes with the amazing feature such as searching a record in
the fraction of seconds. If the gym manager wants to search for a specific
record then by choosing the 3rd option he’ll be able to search the record…
The admin has all the rights to edit the details of the member user. If the gym
manager found some mistake in the member information then by choosing
this option he or she will be able to edit all the record of existing user.
Delete Member:
If the membership of any specific user ends then their should be facility to
delete the membership. So we’ve added functionality of deleting the member
record by choosing 5th option. After choosing the 5th option the software will
ask admin to enter the member number so that the software can search the
specific record to delete. After entering the correct member number the record
will be deleted successfully.
Architecture
START
GYM MANAGEMENT
SYSTEM
SELECT MODE
1.USER
2.ADMIN
USER ADMIN
SEARCH FOR A
JOIN GYM:- CREATE MEMBER:-
MEMBER NUMBER MEMBER NUMBER
NAME NAME
CONTACT NUMBER CONTACT NUMBER
MEMBERSHIP CLASS MEMBERSHIP CLASS
GYM TIMINGS GYM TIMINGS
GYM TIMINGS
NAME
QUIT GYM:-
CATEGORY
ENTER MEMBER NO.
FEE
CONTACT
TIMINGS
NAME
CATEGORY
FEE
CONTACT
TIMINGS
DELETE MEMBER:-
RECORD DELETED
MEMBER NUMBER
NAME
CONTACT NUMBER
MEMBERSHIP CLASS
END
STEPS:
1.Open the file using C++ Compiler such as Dev C++ etc.
2.paste the source code and save the file in any of the computer locations.
3.Compile the project using compile option.
4.There is no error in the source code, if found then correct it.
5.Now run the project.
6.The executable .exe file will be generated in the location you choose.
Code
#include<fstream>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<cstring>
#include<cstdlib>
class alogin
{
string admin;
public:
int adlogin()
{
int p=getadpassword();
if (p==1)
{
cout<<"login succesful"<<endl;
return 1;
}
}
else{
cout<<"user name not found"<<endl;
adlogin();
cout<<"login failed"<<endl;
return 0;
}
}
int getadpassword();
};
int alogin::getadpassword()
{
string pw;
cout<<"enter the password"<<endl;
cin>>pw;
if(pw=="Srm@123")
{
cout<<"WELCOME!!"<<endl;
return 1;
}
else{
cout<<"entered password is incorrect"<<endl;
getadpassword();
return 0;
}
}
void allotment_gold(int gc,int sc)
{
if(gc!=0)
{
cout<<gc<<endl;
cout<<"trainer alloted\n";
}
else
{
cout<<"no trainer available\n";
}
}
cout<<"trainer alloted\n";
}
else
{
cout<<"\nno trainer available\n";
if(gc!=0)
{
cout<<"enter another class\n";
allotment_gold(gc,sc);
}
}
}
int trainee_allotment(char* c)
{ char class_type[10];
int i,gold_class=3,silver_class=5;
strcpy(class_type,c);
if((gold_class!=0) || (silver_class)!=0)
{
if(strcmp(class_type,"gold")==0)
{
gold_class--;
allotment_gold(gold_class,silver_class);
}
else if(strcmp(class_type,"silver")==0)
{
silver_class--;
allotment_silver(gold_class,silver_class);
}
else
{
class member
{
int member_number,j;
char mem_name[50], classs[50],timings[50];
float fee;
}
void create_mem()
{ int k,l,j;
cout<<endl<<"Please Enter The member Number: ";
cin>>member_number;
cout<<endl<<"Please Enter The Name of The member: ";
getchar();
cin.getline(mem_name ,50);
cout<<endl<<"Please Enter The contact number: ";
cin>>contact;
cout<<"1.gold class\n 2.silver class\n";
cout<<"enter the choice\n";
cin>>k;
switch (k)
{
case 1:{strcpy(classs,"gold");
fee=2500;
cout<<"your monthly fee would be: "<<fee<<endl;
l=trainee_allotment(classs);
}
break;
case 2:{strcpy(classs,"silver");
fee=2000;
cout<<"your monthly fee would be: "<<fee<<endl;
l=trainee_allotment(classs);
}
break;
}
time_slots();
}
void show_mem()
{
cout<<endl<<"member code: "<<member_number;
cout<<endl<<"Name: "<<mem_name;
cout<<endl<<"category: "<<classs;
cout<<endl<<"fee: "<<fee;
cout<<endl<<"contact: "<<contact;
cout<<endl<<"timings: "<<timings<<endl;
}
int getmem()
{
return member_number;
}
float getfee()
{
return fee;
}
char* getName()
{
return mem_name;
}
float getcontact()
{
return contact;
}
};
fstream fp;
member m1;
void save_member()
{
fp.open("newdata2.dat",ios::out|ios::app);
m1.create_mem();
fp.write((char*)&m1,sizeof(m1));
fp.close();
cout<<endl<<endl<<"the member has been succesfully added...";
getchar();
}
void show_all()
{
system("cls");
cout<<endl<<"\t\tRECORDS...";
fp.open("newdata2.dat",ios::in);
while(fp.read((char*)&m1,sizeof(m1)))
{
m1.show_mem();
getchar();
}
fp.close();
fp.close();
if(found == true)
cout<<"\n\nNo record found";
getchar();
}
void edit_member()
{
int num;
bool found=false;
system("cls");
cout<<endl<<endl<<"\tPlease Enter The member number: ";
cin>>num;
fp.open("newdata2.dat",ios::in|ios::out);
while(fp.read((char*)&m1,sizeof(m1)) && found==false)
{
if(m1.getmem()==num)
{
m1.show_mem();
cout<<"\nPlease Enter The New details of the member: "<<endl;
m1 .create_mem();
int pos=1*sizeof(m1);
fp.seekp(pos,ios::cur);
fp.write((char*)&m1,sizeof(m1));
cout<<endl<<endl<<"\t Record Successfully Updated...";
found=true;
}
}
fp.close();
if(found==false)
cout<<endl<<endl<<"Record Not Found...";
getchar();
}
void delete_member()
{
int num;
system("cls");
cout<<endl<<endl<<"Please Enter The member number: ";
cin>>num;
fp.open("newdata2.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp2.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&m1,sizeof(m1)))
{
if(m1.getmem()!=num)
{
fp2.write((char*)&m1,sizeof(m1));
}
}
fp2.close();
fp.close();
remove("newdata2.dat");
rename("Temp2.dat","newdata2.dat");
cout<<endl<<endl<<"\tRecord Deleted...";
getchar();
}
void fnmanage()
{
for(;;)
{
system("cls");
int option;
cout<<"\t*****************";
cout<<"\n\tPress 1 to CREATE MEMBER";
cout<<"\n\tPress 2 to DISPLAY ALL RECORDS";
cout<<"\n\tPress 3 to SEARCH FOR A PARTICULAR RECORD ";
cout<<"\n\tPress 4 to EDIT MEMBER DETAILS";
cout<<"\n\tPress 5 to DELETE MEMBER";
cout<<"\n\tPress 6 to GO BACK TO MAIN MENU";
cout<<"\n\t****************";
cout<<"\n\n\tOption: ";
cin>>option;
switch(option)
{
case 1: system("cls");
save_member();
break;
case 2: show_all();
break;
case 3:
int num;
system("cls");
cout<<"\n\n\tPlease Enter The member Number: ";
cin>>num;
display_record(num);
break;
case 4: edit_member();
break;
case 5: delete_member();
break;
case 6: system("cls");
break;
default:fnmanage();
}
}
}
void fitness()
{
{cout<<"displaying fitness tips..."<<endl;
std::ifstream f("tips.txt");
if (f.is_open())
{
std::cout << f.rdbuf();
}}
}
void fnuser()
{
for(;;){
int m;
cout<<"1.join gym\n2.quit gym\n3.edit your profile\n";
cout<<"enter your choice"<<endl;
cin>>m;
switch(m)
{
case 1:system("cls");
save_member();
break;
case 2:delete_member();
break;
//case 3:fitness();
// break;
case 3:edit_member();
break;
}
}
}
int main()
{
int i,k;
string name,code;
cout<<"SRM GYM MANAGEMENT SYSTEM"<<endl;
cout<<"SELECT MODE"<<endl<<"1.USER"<<endl<<"2.admin"<<endl;
cin>>i;
alogin ad;
k=ad.adlogin();
if(k==1)
{
fnmanage();
}
else
{
cout<<"you cannot access manageral
details!";
}
return 0;
}
CONCLUSION:
In this way, we’ve created and executed the Gym Management System Project
in C++.
If you have any doubt then please feel free to ask. We’ll solve your doubts.