PPS Mini Project-Report-Template
PPS Mini Project-Report-Template
SYSTEM
21CSS101J – PROGRAMMING FOR PROBLEM-SOLVING
Submitted by
SCHOOL OF COMPUTING
COLLEGE OF ENGINEERING AND TECHNOLOGY
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Under Section 3 of UGC Act, 1956)
S.R.M. NAGAR, KATTANKULATHUR – 603 203
CHENGALPATTU DISTRICT
1|P a ge
COLLEGE OF ENGINEERING AND TECHNOLOGY
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Under Section 3 of UGC Act, 1956)
S.R.M. NAGAR, KATTANKULATHUR – 603 203
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
2|P a ge
TABLE OF CONTENTS
1 Problem Statement
3 Flowchart
4 Coding (C/Python)
6 Results/Screenshots
7 References
3|P a ge
1.Problem Statement
4|P a ge
appropriateregister and locate the appropriate placement of that
particularrecord which may be very time consuming.
Data redundancy is also a great issue in such kind of system.
Redundancy means repetiton. Thus data modified or updated at a
particular place may not be data modified or updated at the other
related place which may create inconsistencies in data handling. It
destroys data integrity and creates confusion for the owner.
This simple coded program allows a fitness gym company to store and
retrieve customer and product details and update them easily. The
software is capable enough to allow the concerned person to store and
retrieve any type of record with just a single click of mouse.The software
allows interactive, self decribing graphic user interface environment
where even standalone users can work verycomfortably and easily.
Data redundancy is no more the problem now. The data modified from
one particular data entry form will reflect the modifications at the other
related forms, too.This has thus reduced the chances of data inconsistency
in our data storage.
5|P a ge
There is no need to manage bulky registers now as data stored in the
backend database can be readily retrieved either from the frontend form
itself or directly from the database.
6|P a ge
1. Methodology / Procedure/ Algorithm
7|P a ge
2. Flow chart
8|P a ge
3. Coding (C/Python)
class super_user:
def __init__(self):
self.member=dict([])
self.regimen=dict([])
def
create_member(self,name,age,gender,mobile_no,email,BMI,membershi
p_duration):
self.member[mobile_no]={}
self.member[mobile_no]["name"]=name
self.member[mobile_no]["age"]=age
self.member[mobile_no]["gender"]=gender
self.member[mobile_no]["mobile_no"]=mobile_no
self.member[mobile_no]["email"]=email
self.member[mobile_no]["BMI"]=float(BMI)
self.member[mobile_no]["membership_duration"]=int(membership_d
uration)
def view_member(self):
for i in self.member.keys():
print("Full Name:",self.member[mobile_no]["name"])
print("Age:",self.member[mobile_no]["age"])
print("Gender:",self.member[mobile_no]["gender"])
print("Mobile No:",self.member[mobile_no]["mobile_no"])
print("Email ID:",self.member[mobile_no]["email"])
print("BMI:",self.member[mobile_no]["BMI"])
print("Membership Duration:",
self.member[mobile_no]["membership_duration"])
9|P a ge
def delete_member(self,mobile_no):
return self.member.pop(mobile_no)
def create_regimen(self,BMI):
self.regimen[BMI]={}
if BMI<=18.5:
self.regimen[BMI]["Mon"]="CHEST"
self.regimen[BMI]["Tue"]="BICEPS"
self.regimen[BMI]["Wed"]="REST"
self.regimen[BMI]["Thu"]="BACK"
self.regimen[BMI]["Fri"]="TRICEPS"
self.regimen[BMI]["Sat"]="REST"
self.regimen[BMI]["Sun"]="REST"
def view_regimen(self):
return self.regimen
def delete_regimen(self,BMI):
return self.regimen.pop(BMI)
def update_regimen(self,BMI,day,value):
self.regimen[BMI][day]=value
class User():
def __init__(self,member,regimen,phone):
self.user_profile=member[phone]
self.user_regimen=regimen
def view_user_profile(self):
return self.user_profile
def view_user_regimen(self):
return self.user_regimen[self.user_profile["BMI"]]
S=super_user()
11 | P a g e
opt=True
while (opt==True):
print("Welcome,Do you want to enter as an user or as super user")
print("press 1 for Super user")
print("press 2 for user")
val=int(input())
if val==1:
sup=True
print("Congratulations You are logged in as Super User")
while(sup==True):
print()
print("choose your option\n 1.Create member\n 2.View
member\n 3.Delete member\n 4.Update membership\n5.View
regimen\n")
num=int(input())
if num==1:
name=input("Enter Full Name:")
age=int(input("Enter age:"))
gender=input("Gender(M/F/T):")
mobile_no=int(input("Enter mobile number:"))
email=input("Enter your Email ID:")
BMI=float(input("Enter your BMI(1.0-35.0):"))
membership_duration=int(input("Enter the
duration(1/3/6/12):"))
if membership_duration in [1,3,6,12]:
S.create_member(name,age,gender,mobile_no,email,BMI,membership_
duration)
S.create_regimen(BMI)
else:
print("membership duration can only be 1,3,6 & 12-->Try
again")
elif num==2:
12 | P a g e
print(S.view_member())
elif num==3:
mob=int(input("enter the mobile number of user to be
deleted:"))
S.delete_member(mob)
elif num==4:
mob=int(input("enter the mobile number of user to be
updated:"))
membership_duration=int(input("enter the duration upto
which you want to extend:"))
S.update_membership(mob,membership_duration)
elif num==5:
print(S.view_regimen())
try:
S.delete_regimen(BMI_delete)
except:
print("Invalid BMI")
try:
S.update_regimen(BMI_update,Day,value)
except:
print("Invalid details")
elif num==9:
break
else:
print("Invalid input")
print("Want to enter more (Y/N)?")
sup=input()=="Y"
13 | P a g e
elif val==2:
user1=True
try:
phone=int(input("please Enter the user mobile number:"))
B=User(S.member,S.regimen,phone)
password=input("enter password (Hint:Your full Name):")
if password == S.member[ phone]["name"]:
print("Congratulations You are logged in as User")
while(user1==True):
print("Select any :\n 1.View User Regimen \n 2.View User
profile \n3.Update Membership \n 4.Log out")
val=int(input())
if val==1:
try:
print(B.view_user_regimen())
except:
print("User regimen not present")
elif val==2:
try:
print(B.view_user_profile())
except:
print("User profile not present")
elif val==3:
membership_duration=int(input("Enter the duration upto
which you want extenxion:"))
try:
S.update_membership(phone,membership_duration)
print("Want to enter more (Y/N)?")
user1=input()=="Y"
except:
print("Invalid User Details enter again")
elif val==4:
break
14 | P a g e
else:
print("Invalid number")
else:
print("Invalid password")
except:
print("either user not registered or invalid entry")
print("Want to enter more (Y/N)?")
user1=input()=="Y"
15 | P a g e
4. Modules of the proposed work
16 | P a g e
offering. Over time, it increases your member retention and attracts more
customers who expect flexibility and complete convenience.
Monitor member data and activity so that you can step in and engage
with at-risk members before they leave.
Putting your time and resources into the right part of the business
can reduce time-wasting and costs. Administrative tasks take up a lot of
time for gym owners and managers. A gym management system should
free up a lot of time so that your team can focus on what they do best;
selling gym memberships, creating a great member experience, and
producing fantastic member results. When you make decisions driven by
data, you will likely invest your money and time much more effectively.
18 | P a g e
7. Results/Screenshots
19 | P a g e
20 | P a g e