0% found this document useful (0 votes)
138 views16 pages

Fitness 3 18

This document contains an index and summary of a Python project on a fitness center management system. The index lists 18 pages covering acknowledgments, descriptions of the fitness center and Python, system requirements, a CSV file, source code, outputs, and bibliography. The document provides overviews and context for each section to explain the contents and purpose of the project.

Uploaded by

Yaishnave R
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)
138 views16 pages

Fitness 3 18

This document contains an index and summary of a Python project on a fitness center management system. The index lists 18 pages covering acknowledgments, descriptions of the fitness center and Python, system requirements, a CSV file, source code, outputs, and bibliography. The document provides overviews and context for each section to explain the contents and purpose of the project.

Uploaded by

Yaishnave R
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/ 16

INDEX

S No. Description Page No.

1 Acknowledgement 4

2 About FITNESS CENTRE 5

3 Introduction About 6
Python

4 Software And Hardware 7


Requirements

5 CSV File 8

6 Source Code 9

7 Outputs 12

8 Bibliography 18

3
ACKNOWLEDGEMENT

First of all I thank the Lord Almighty for showering his

blessings on me to complete this project successfully.

I would like to express my sincere gratitude towards our

Manager, V.Fr.Francis Arickal for providing us the

facilities to work on the project.

I also thank our Principal, Mrs. Gracey Anand for

providing us all the support.

I would like to express a deep sense of gratitude towards

our Informatics Practices teacher, Mrs. Anila Sam for her

valuable guidance and support.

I must also thank my friends, family members and all

others who supported us in doing this project.

4
ABOUT FITNESS CENTRE

The Project is based on Fitness centre which handles all the


name,the trainer and physical fitness available. The entire
project is done using IDLE(Python 3.964-bit). For the Data
Handling Pandas is used and for Graphical Representation,
Matplotlib interface Pyplot is used. The main menus of this
project are,

1: Show All Records

2: Display name and fees of given gym ID

3: Display name of a trainees under a particular fees

4:Add a record

5: Modify a record

6: Delete a record

7: Show height chart using bargraph

8: Show weight chart using line chart

9:Bargraph of name vs weight

10: Save data into csv file

5
INTRODUCTION ABOUT PYTHON

Python is an high-level general-purpose programming language. Python's design


philosophy emphasizes code readability with its notable use of significant
indentation. Its language constructs as well as its object-oriented approach aim to
help programmers write clear, logical code for small and large- scale projects.

Python is dynamically-typed and garbage-collected.


It supports multiple programming paradigms,including oriented and functional
programming. Python is often described as a "batteries included" language due to
its comprehensive standard library.
Guido van Rossum began working on Python in the late 1980’s, as a successor to
the ABC programming language, and first released it in 1991 as Python 0.9.0.
Python 2.0 was released in 2000 and introduced new features, such as list
comprehensions and a garbage collection system using reference counting. Python
3.0 was released in 2008 and was a major revision of the language that is not
completely backward- compatible and much Python 2 code does not run
unmodified on Python 3. Python 2 was discontinued with version 2.7.18 in
2020.Python consistently ranks as one of the most popular programming
languages.

Since 2003, Python has consistently ranked in the top ten most popular
programming languages in the TIOBE Programming Community Index where, as
of February 2021, it is the third most popular language (behind Java, and C). It
was selected Programming Language of the Year in 2007, 2010, 2018, and 2020 .

6
SYSTEM REQUIREMENTS

Hardware Requirements:

 A Computer / Laptop with


 Operating System – Windows 7 or above
 X86 64-bit CPU (Intel / AMD architecture)
 4 GB RAM
 5 GB free disk space

Software Requirements:

 Python 3.6.x or higher version


 Pandas Library pre-installed

 Matplotlib Library pre-installed

7
CSV FILE

8
SOURCE CODE
import pandas as pd
import matplotlib.pyplot as plt
df=pd.read_csv("fitness.csv")
choice='y'
while choice=='y':
print('1:show all record')
print('2:display name and fees of given gid')
print('3:display name of a trainees under a particular fees')
print('4:add a record')
print('5:modify a record')
print('6:delete a record')
print('7:show height chart using bargraph')
print('8:show weight chart using line chart')
print('9:bargraph of name vs weight')
print('10:save data into csv file')
ch=eval(input("enter your choice"))
if ch==1:
print(df)
elif ch==2:
b=int(input('gid'))
for i in range(len(df)):
if df.iloc[i][0]==b:
print(df.iloc[i][1],df.iloc[i][6])
elif ch==3:
g=int(input("fees"))
for i in range(len(df)):
if df.iloc[i][6]==g:

9
print(df.iloc[i][1])
elif ch==4:
n=int(input("enter gid:"))
i=input("enter name:")
a=input("enter age:")
g=input("enter weight:")
q=input("enter height:")
p=input("enter trainer:")
o=eval(input("enter fees:"))
df.loc[10]=[n,i,a,g,q,p,o]
print(df)
elif ch==5:
z=int(input("enter gid to modify:"))
f=int(input("enter new fees:"))
for i in range(len(df)):
if df.iloc[i][0]==z:
df.iat[i,6]=f
print("modified")
break
else:
print("not present")
elif ch==6:
print(df)
i=int(input("enter the index number :"))
df=df.drop(i,axis=0)
print(df)
elif ch==7:
x=df["name"]
y=df["height"]

10
plt.title("name vs height")
plt.bar(x,y,color=['g','r','b','k','m','c','y','g','r'])
plt.xlabel('name')
plt.ylabel('height')
plt.show()
elif ch==8:
x=df["name"]
y=df["weight"]
plt.plot(x,y)
plt.xlabel("name")
plt.ylabel("weight")
plt.show()
elif ch==9:
x=df["name"]
y=df["weight"]
plt.title('name vs weight')
plt.bar(x,y,color=['g','r','b','k','m','c','y','g','r'])
plt.xlabel('name')
plt.ylabel('weight')
plt.show()
elif ch==10:
df.to_csv("fitness.csv",index=False)
print("FILE SAVED")
choice=input("do you want to continue,press y:")
else:
print("PROGRAM FINISHED")

11
OUTPUTS

CHOICE 1:

12
CHOICE 2 :

CHOICE 3 :

13
CHOICE 4 :

14
CHOICE 5:

CHOICE 6:

15
CHOICE 7:

CHOICE 8:

16
CHOICE 9:

CHOICE 10:

17
BIBLIOGRAPHY/REFERENCES

 CLASS XII NCERT TEXTBOOK

 https://www.python.org/

 https://www.wikipedia.org/

 https://cbse.nic.in/

18

You might also like