St. Joseph School: SESSION: 2021-2022 Date: 09-03-2022
St. Joseph School: SESSION: 2021-2022 Date: 09-03-2022
JOSEPH SCHOOL
SESSION : 2021-2022
Date : 09-03-2022
Topic: FITNESS CENTRE
Class – 12th A
Subject - COMPUTER SCIENCE
SUBMITTED TO – SUBMITTED BY –
MR.AMAR SINGH MR. HARSH DESHPANDE
TEACHER’s CERTIFICATE
This is to certify that HARSH
DESHPANDE of Class 12th has completed
the Project File Successfully of the partial
fulfillment of AISSCE Practical
examination of 2021-22 for the subject
Computer Science
Principal:
Internal Examiner:
External Examiner:
Student’s Certificate
I HARSH DESHPANDE student of Class
12thA St. Joseph School Indore , Hereby
certify that the project was undertaken by
me as a part of CBSE curriculum. The
data used in the project has been
personally analyzed and noted by me and
therefore,I take it to be authentic and
reliable.
SIGNATURE:
Acknowledgement
I would like to express my gratitude and special
thanks to ourPrincipal Rev. Sr. CELINE who
gave me the golden opportunity to do this
wonderful project on the Topic –
“FITNESS CENTRE”
I would also like to express my gratitude to my
Computer Science mentor Mr. AMAR SINGH
for his guidance and advice to complete my
work successfully and teaching us all Python
programming language and multiple useful tips.
2. Introduction of “Project”
2.1 What is the “Objective” and “Scope of the
Project”?
2.2 How it will solve the computational
problem related to real world.
2.3 What kind of problem you faced during
coding of project and how you overcome of
all this “bugs”.
2.4 What make your project different to others
project ?
2.5 What are the positive and negative points of
your project.
3. System implementation
3.1 Hardware requirement(minimum)
(operating system(windows-07) , 2GB-
RAM , 10GB STORAGE , MOUSE ,
KEYBOARD , SCREEN)
3.2 Software requirement for front-end and
back-end.
(PYTHON IDLE + MYSQL)
4. Bibliography
ABOUT PYTHON
Python is an interpreted, high-level, general-purpose
programming language. Created by Guido van Rossum
and first released in 1991. Python's design philosophy
emphasizes code readability with its notable use of
significant whitespace. Its language constructs and object-
oriented approach aim to help programmers write clear,
logical code for small and large-scale projects
1. Extensive Libraries
Python downloads with an extensive library and it contain
code for various purposes like regular expressions,
documentation-generation, unit-testing, web browsers,
threading, databases, CGI, email, image manipulation,
and more. So, we don’t have to write the complete code
for that manually.
2. Extensible
As we have seen earlier, Python can be extended to other
languages. You can write some of your code in languages
like C++ or C. This comes in handy, especially in
projects.
3. Embeddable
Complimentary to extensibility, Python is embeddable as
well. You can put your Python code in your source code
of a different language, like C++. This lets us add
scripting capabilities to our code in the other language.
4. Improved Productivity
The language’s simplicity and extensive libraries render
programmers more productive than languages like Java
and C++ do. Also, the fact that you need to write less and
get more things done.
2. Affordable
Python is free therefore individuals, small companies or
big organizations can leverage the free available resources
to build applications. Python is popular and widely used
so it gives you better community support.
The 2019 Github annual survey showed us that
Python has overtaken Java in the most popular
programming language category.
3. Design Restrictions
As you know, Python is dynamically-typed. This means that
you don’t need to declare the type of variable while writing
the code. It uses duck-typing. But wait, what’s that? Well, it
just means that if it looks like a duck, it must be a duck.
While this is easy on the programmers during coding, it can
raise run-time errors.
4. Underdeveloped Database Access Layers
Compared to more widely used technologies like JDBC
(Java Database Connectivity) and ODBC (Open Database
Connectivity), Python’s database access layers are a bit
underdeveloped. Consequently, it is less often applied in
huge enterprises.
PROJECT ON FITNESS CENTRE
INTRODUCTION
This project is on fitness centre. In today’s
world people don’t
Want to make an register. They can make record all data in
computer this software will help them in different way.
where not to wise saying “to err is human” no longer valid, it’s
organization has made their work faster and easier. Now only this
done.
better look.
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
III. mysql
SOURCE CODE
fit=sql.connect(host='localhost',user='root',passwd='admin@123',d
atabase='fit_project')
if fit.is_connected():
print('connected')
print('')
print('')
print('WELCOME TO RAHI FITNESS CENTRE')
print('')
print('')
print('TO LOGIN PRESS :1')
print('')
print('')
print('TO CREATE YOUR NEW ACCOUNT PRESS :2')
print('')
print('')
print('TO EXIT PRESS :3')
print('')
c=int(input('enter your choice'))
if (c==1):
print('')
print('to login please enter your user id and password')
print('')
user_id=input('enter your user id')
print('')
passwd=input('enter your password')
print('')
name=input('enter your name')
print('')
c1=fit.cursor()
c1.execute('select * from user_fitness_rahi1')
data=c1.fetchall()
count=c1.rowcount
else:
('something wemt wrong')
elif (c==2):
print('')
print('to create your account please enter your user id and
password')
print('')
c1=fit.cursor()
c1=fit.cursor("('create table user_fitness_rahi1
(user_id varchar(100) primary key,password
varchar(100),name varchar(100))')
v_user_id=int(input('choose your user id (in integar)'))
print('')
v_passwd=int(input('create your password (in integar)'))
print('')
v_name=input('your full name')
print('')
c1=fit.cursor()
update=("insert into user_fitness_rahi1 values("+
str(v_user_id) +","+ str(v_passwd) +",'"+ (v_name) +"')")
c1.execute(update)
fit.commit()
print('account created')
elif (c==3):
print('vist again')
print('')
print('thank you')
else:
('something wemt wrong')
SOURCE CODE OF TABLES
import mysql.connector as sql
fit=sql.connect(host='localhost',user='root',passwd='admin@123',database='fit_pr
oject')
if fit.is_connected():
print('connected')
c1=fit.cursor()
c1.execute('create table user_fitness_rahi(user_id varchar(10) primary
key,password varchar(11),name varchar(10))')
fit.commit()
print('table created')