0% found this document useful (0 votes)
33 views

IP_Mini_Project_Sports_Shop_Management_System-1-.pdf

Uploaded by

Rizwan Middya
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)
33 views

IP_Mini_Project_Sports_Shop_Management_System-1-.pdf

Uploaded by

Rizwan Middya
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/ 25

Sports Shop Management System March 2022

A PROJECT REPORT ON

SPORTS SHOP MANAGEMENT SYSTEM


FOR

AISSCE 2022 EXAMINATION


As a part of the Informatics Practices Course (065)

SUBMITTED
BY:

Name of the Student


1.Rizwan Middya
2.Sayan Mondal
3.Mohammedafroz alam
4.Ankush Kumar M

Under the guidance of

Mrs. Kowsalyamadhu
PGT in Informatics Practices

DEPARTMENT OF INFORMATICS PRACTICES

SRI CHAITANYA TECHNO SCHOOL


Nagavara Village ,Kasba Hobli,Bengaluru-
560045,Karnataka

Page 1
Sports Shop Management System March 2022

CERTIFICATE

This is to certify that the Project / Dissertation entitled SPORTS SHOP


MANAGEMENT SYSTEM is a bonafide work done by Ms.
…………………….. of class XII in partial fulfillment of CBSE’s AISSCE Examination 2024-25
and has been carried out under my direct supervision and guidance. This report or a similar report
on the topic has not been submitted for any other examination and does not form a part of any
other course undergone by the candidate.

Signature of Student Signature of Teacher/Guide


Name: ……………………. NameMrs. Kowsalyamadhu
Roll No.: …………………… Designation: PGT in IP

Signature of Principal

Mrs. D P Srilakshmi
Place: Bannerghatta

Date: …………..

Page 2
Sports Shop Management March 2022

ACKNOWLEDGEMENT
I would like to thank the institution for giving the opportunity to

encase and display our talent through this project.

I would like to thank my Informatics Practices teacher Mrs.Swathi

for having the patience to guide me at every step in the project.

I am also grateful to the CBSE BOARD for challenging and giving

us this project in which we all were so engrossed.

I would also like to thank my parents and friends who helped me in

getting the right information for this project.

3
Sports Shop Management March 2022

TABLE OF CONTENTS

S.No Topic Name Page No


1. Abstract 5
2. System requirements 6
3. Python Introduction 7
4. My SQL Introduction 10
5. Database Design 11
6. Coding 12
7. Output Screens 19
8. Bibliography 25

4
Sports Shop Management March 2022

ABSTRACT

This IP project is a joint effort by Harshitha T, Harshitha R and Sandhya studying in the 12th

standard. Finding a quick and easy way to keeping track of data collected in a sports shop is quite

challenging, and time consuming. So we created a Python program to make this task simple. The

main objective of the program created is to gather data from a user and to store the given data in a

table that has been created in MySQL. In order to view the data, we can either present it in the form

of a table or a bar chart. Code has been written so that the user can add and update existing data in

the table as easy as possible. Many initiatives have been taken by the group members to make the

process of interacting with the program user friendly. As a result, sports shop owners and

accountants can keep track of all the products, their prices, count etc. A column for the

manufacturer’s numbers has been provided so that the shop owners can order bulk amounts of goods

in the near future. In conclusion, this program is simple and concise even though its usability with

respect to sports shops is quite versatile.

5
Sports Shop Management March 2022

SYSTEM REQUIREMENTS

Hardware Components
1. VGA Monitor
2. Qwerty keyboard
3. 2GB RAM
4. 2.6 GHz Processor
5. Graphics card

Software Components
1. Windows 7
2. Python 3.7 with suitable modules
3. MySQL Command Client

6
Sports Shop Management March 2022

Python Introduction
It is widely used general purpose, high level and Object-Oriented Programming Language.
Developed by Guido van Rossum in February 1991.

It is used for:
Software development, web development (server-side), system scripting, Mathematics.
Features of Python:
1. Easy to use : Due to simple syntax rule
2. Interpreted language : Code execution & interpretation line by line.
3. Cross-platform language : It can run on Windows, Linux, Macintosh etc. equally
4. Expressive language : Less code to be written as it itself express the purpose of the code.
5. Completeness : Support wide range of library.
6. Free & Open Source : Can be downloaded freely and source code can be modify for
improvement.
Shortcomings of Python:
1. Lesser libraries : as compared to other programming languages like c++,java,.net
2. Slow language : as it is interpreted languages, it executes the program slowly.
3. Weak on Type-binding : It will not pin point on use of a single variable for different
data types.

7
Sports Shop Management March 2022

Object Oriented Programming


Object Oriented Programming is an approach that provides a way of modularizing
programs by creating partitioned memory area for both data and functions that
can be used as templates for creating copies of such modules on demand.
Objects and Classes - An object is a software bundle of variables and related
methods. Objects are key to understanding object-oriented technology. Real-
world objects share two characteristics: They all have state and behavior.
Software objects are modeled after real-world objects in that they too have
state and behavior Classes can also define class variables. A class variable
contains information that is shared by all instances of the class. A class can also
declare class methods. You can invoke a class method directly from the class,
whereas you must invoke instance methods on a particular instance.
Abstraction - Hiding the Unnecessary details from the user and providing only the
required details, is called Data Abstraction.

8
Sports Shop Management March 2022

Encapsulation - Wrapping of data and methods into a single unit is known as


encapsulation. It is the most striking feature of class. The data is not accessible
to outside world and only those methods which are wrapped in the class can
access it. The insulation of the data from direct access by the program is called
data hiding.
Inheritance - Inheritance is the process by which objects of one class acquire
the property of objects of another class. Each subclass inherits state. However,
subclasses are not limited to the states and behaviors provided to them by their
superclass. Subclasses can add variables and methods to the ones they inherit
from the superclass. It supports the concept of hierarchical classification it also
provides the use of reusability.
Polymorphism - This means the ability to take more than one form. An operation
may exhibit different behaviour in different instances. The behaviour depends
upon the types of data used in the operation. It plays an important role in allowing
objects having different internal structures to share external interface.

9
Sports Shop Management March 2022

MYSQL Introduction
MySQL is currently the most popular open source database software. It is a multi-user,
multithreaded database management system. MySQL is especially popular on the web. It is one
of the most popular LAMP platform (Linux, Apache, MySQL and PHP) or WAMP platform
(Windows, Apache, MySQL and PHP). MySQL AB was a Swedish software company founded by
Michael Widenius (Monty), David Axmark and Allan Larsson in Sweden in year 1995. It was
acquired by Sun Microsystems in 2008.
Features of mysql:
Open Source & Free of Cost:
It is Open Source and available at free of cost.

Portability: Small enough in size to install and run it on any types of Hardware and OS
like Linux, MS Windows or Mac etc.
Security : Its Databases are secured & protected with password.
Connectivity : Various APIs are developed to connect it with many programming
languages.

Query Language : It supports SQL (Structured Query Language) for handling database.

10
Sports Shop Management March 2022

DATABASE DESIGN

In the following table “inventory”, we will store the information about the
products:

11
Sports Shop Management March 2022

CODING
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='1')
a=conn.cursor()
#a.execute('create database SportsShop')
a.execute('use SportsShop')
#a.execute('create table Inventory(rno int primary key,product_name
varchar(20),price decimal(5,2),count varchar(20),manufacturer_number
varchar(20))')
conn.commit()
while(True):
print('1.Insert')
print('2.Dispaly Table')
print('3.Search')
print('4.Update')
print('5.Delete Table')
print('6.Graph')
print('7.Exit')
12
Sports Shop Management March 2022

ch=int(input('Enter Valid Choice:-'))


if(ch==1):
conn=pymysql.connect(host='localhost',user='root',password='1',database='Sp
ortsShop')
a=conn.cursor()
rn=int(input('Enter Roll Number:-'))
pn=input('Enter Product Name:-')
p=float(input('Enter Price:-'))
c=input('Enter Count:-')
mn=input('Enter Manufacturer Number:-')
x='insert into Inventory values('+
str(rn)+',"'+pn+'"'+','+str(p)+',"'+c+'"'+',"'+mn+'"'+')'
a.execute(x)
print('-{One Row Inserted}-')

13
Sports Shop Management March 2022

conn.commit()
elif(ch==2):
conn=pymysql.connect(host='localhost',user='root',password='1',database='Sp
ortsShop')
a=conn.cursor()
x='select *from Inventory'
a.execute(x)
data=a.fetchall()
for i in data:
for j in i:
print(j,end='\t')
print()
conn.commit()
elif(ch==3):
conn=pymysql.connect(host='localhost',user='root',password='1',database='Sp
ortsShop')

14
Sports Shop Management March 2022

a=conn.cursor()
rn=int(input('Enter Roll Number In Order To Search:-'))
x='select *from Inventory where Rno='+str(rn)
a.execute(x)
data=a.fetchall()
if(len(data)==0):
print('-{Details With Roll Number',rn,'Not Found}-')
else:
print('-{Details With Roll Number',rn,'Found}-')
print('Product Name=',data[0][1])
print('Price=',data[0][2])
print('Count=',data[0][3])
print('Manufacturer Number=',data[0][4])
conn.commit()
elif(ch==4):
conn=pymysql.connect(host='localhost',user='root',password='1',database='Sp
ortsShop')

15
Sports Shop Management March 2022

a=conn.cursor()
rn=int(input('Enter Roll Number To Update:-'))
x='select *from Inventory where Rno='+str(rn)
a.execute(x)
data=a.fetchall()
if(len(data)==0):
print('-{Details With Roll Number',rn,'Not Found}-')
else:
print('-{Details With Roll Number',rn,'Found}-')
print('Product Name=',data[0][1])
print('Price=',data[0][2])
print('Count=',data[0][3])
print('Manufacturer Number=',data[0][4])
productname=input('Enter New Product Name:-')
price=float(input('Enter New Price:-'))
count=input('Enter New Count:-')

16
Sports Shop Management March 2022

manufacturernumber=input('Enter New Manufacturer Number:-') x="update


Inventory set
product_name='"+productname+"',price="+str(price)+",count='"+count+"',ma
nufacturer_number='"+manufacturernumber+"' where rno="+str(rn)
a.execute(x) print('-{Rows Updated Successfully}-') conn.commit() elif(ch==5):
print('-{Table Delete Function Not Authorised}-') elif(ch==6): import
matplotlib.pyplot as plt L1=[] L2=[]
conn=pymysql.connect(host='localhost',user='root',password='1',database='Sp
ortsShop')

17
Sports Shop Management March 2022

a=conn.cursor()
x='select product_name,price from Inventory'
a.execute(x)
data=a.fetchall()
for i in data:
L1.append(i[0])
L2.append(i[1])
plt.bar(L1,L2)
plt.show()
conn.commit()
else:
break

18
Sports Shop Management March 2022

OUTPUT SCREEN

Screen-1: WELCOME SCREEN

19
Sports Shop Management March 2022

20
Sports Shop Management March 2022

21
Sports Shop Management March 2022

22
Sports Shop Management March 2022

23
Sports Shop Management March 2022

24
Sports Shop Management March 2022

Bibliography:

www.google.com
www.python.org.
www.geeksforgeeks.org
www.stackoveflow.com
Martin Brown and Martin C Brown, “Python: The Complete Reference”,Mc-Graw-Hill,2001

25

You might also like