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

Acknowledgement: Abhinav

computer science project class 12

Uploaded by

abhinavsree006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Acknowledgement: Abhinav

computer science project class 12

Uploaded by

abhinavsree006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

ACKNOWLEDGEMENT

I would like to express my sincere thanks of


gratitude to my teacher, Mrs. Jesna Jose and our
Computer Science HOD – Mr. Jagadeesh Patil for
their vital support and guidance, without which
this project would not have been completed.
I also thank my parents who have helped with
valuable suggestions and have provided me with
all the resources required for the completion of this
project.

Abhinav

TABLE OF CONTENTS
S.NO. TOPIC PAGE NO.
1
1. SYNOPSIS

2
2. ABOUT PYTHON

3
3. ABOUT MYSQL

4
4. SYSTEM REQUIREMENT

5
5. SOURCE CODE

10
6. INPUT/OUTPUT DESIGN

13
7. BIBLIOGRAPHY

SYNOPSIS
This project titled, “GAME STORE
MANAGEMENT SYSTEM” is an application that
allows the Store manager to handle all the Game Store
management activities online or offline.
The existing is the one with MS Excel application with
a large volume of game records are stored in a tabular
format.The store manager finds it difficult to handle a
large volume of records.
The Store manager finds it difficult to extract the
required records for doing analysis and making the
decision at the management level. The existing system
does not have any constraint to deny duplication of
records.
The proposed system is the one which handle all the
required operations automatically in which front-end
application handles at the execution level and back-end
application handles at the storage level.
The proposed system is designed with Python IDLE as
front-end and MySQL as back-end.

ABOUT PYTHON
Python or python pandas is python’s library for data analysis.pandas have been
derived from ‘panel data system. Today pandas have become popular choice for
data analysis .
Data analysis refers to the process of evaluating big data sets using analytical
and satatistical tools as to discover useful information and conclusions to
support buisness decision making.
IDLE :-
Integrated Development and Learning Environment is an integrated
development environment (IDE) for Python. The Python installer for Windows
contains the IDLE module by default. IDLE can be used to execute a single
statement just like Python Shell and also to create, modify and execute Python
scripts.
Python Goals :-
In 1999, Guido van Rossum defined his goals for Python:

 An easy and intuitive language just as powerful as those of the major


competitors.

 Open source so that anyone could contribute to its development.


 Code that is as understandable as plain English.
 Suitable for everyday tasks.

Advantages of Python :-

 It is processed at runtime by the interpreter. We do not need to compile


our program before executing it.
 The python prompt helps us interact with the interpreter directly to write
our programs.

 It is a great language for the beginner-level programmers and supports the


development of a wide range of applications.

Limitations of python :-

 Python works with an interpreter and not a compiler due to which its
execution speed is slow.

 Python’s structures demand more memory space. This language is not


suitable to use for development under limited memory restrictions.

 As Python is executed through an interpreter instead of a compiler, errors


and bugs can’t be detected during compilation

 It is considered to be highly insecure and involves secuirity risk.

ABOUT MYSQL
SQL stands for Structured Query Language and is a programming language
which is designed for managing data which is held in a Relational Database
Management System [RDBMS] whereas MySQL is an open-source relational
database management system based on SQL.

Advantages of MySQL :-

 It is easy to use. Basic knowledge of SQL is enough to interact with


MySQL by using only a few simple SQL statements.

 It consists of a solid data security layer that protects sensitive data from
intruders. Also,
passwords are encrypted in MySQL.

 It is free to use and can be downloaded from the MySQL official website
without any cost.

 Its efficiency is high because it has a very low memory leakage problem.
 It is faster, more reliable, and cheaper because of its unique storage
engine architecture.

Limitations of MySQL :-

 It does not support a very large database size as efficiently.


 There are a few stability issues.
 The development is not community driven so it has lagged behind.

SYSTEM
REQUIREMENTS
HARDWARE REQUIREMENTS:

PROCESSOR:Intel(R) Core™ i9-11900K CPU @ 4.50


GHz
RAM:64.00 GB
MONITOR: AOC 360HZ 0.5ms GSYNC OLED 4K
MOUSE AND KEYBOARD
MOUSEPAD
OPERATING SYSTEM - 64-bit operating system

SOFTWARE REQUIREMENT:

FRONT END: python 3.7.4 IDLE


BACK END: MySQL 5.5 command client

SOURCE CODE
#Module Import
import mysql.connector as sql
import tabulate

#Connecting to database
con = sql.connect(host='localhost', username='root', passwd='root',
database='games')
if con.is_connected() == True:
status = 'OK'
cursor = con.cursor()
else:
status = 'Disconnected'

#Option 1
def listGames():
cursor.execute('select * from games')
games = list(cursor.fetchall())
global header
header = ['ID', 'Name', 'Cost', 'Quantity', 'Developer']
return games

#Option 2
def add():
ident = int(input('Enter ID Number: '))
name = input('Enter Name of Game: ')
cost = float(input('Enter Cost of Game: '))
no = int(input('Enter Quantity of Game: '))
dev = input('Enter Publisher Name: ')
cursor.execute("INSERT INTO games VALUES({}, '{}', {}, {},
'{}') ".format(ident, name, cost, no, dev))
print('Record Added Successfully!')

#Option 3
def delete():
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
print()
print('Enter ID of the Record to be Deleted')
id = int(input('> '))
cursor.execute('DELETE FROM games WHERE
ID={}'.format(id))
print('Record has been Deleted Succssfully')
input()

#Option 4
def update():
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
print()
id = int(input('Enter ID of the Record Name to be Modified: '))
name = input('Enter the New Name of the Record: ')
cursor.execute("UPDATE games SET name='{}' WHERE id={}
".format(name, id))
print('Change Record Name Successfully!')
input()

#Option 5
def search():
name = input('Enter Name of Game: ')
cursor.execute("SELECT * FROM games WHERE
name='{}'".format(name))
result = cursor.fetchall()
print()
header = ['ID', 'Name', 'Cost', 'Quantity', 'Developer']
if result != []:
print('Game found!')
print(tabulate.tabulate(result, headers = header, tablefmt='grid'))
else:
print('Game not Found...')
input()
#Menu
while True:
print(f'''Status: {status}
GAME STORE

1. List of Available Games


2. Add New Record
3. Delete Record
4. Update Existing Record Name
5. Search for a Record

''')
ch = input('> ')
if ch.strip() == '1':
print(tabulate.tabulate(listGames(), headers = header,
tablefmt='grid'))
input('')

elif ch.strip() == '2':


add()
input()

elif ch.strip() == '3':


delete()
elif ch.strip() == '4':
update()

elif ch.strip() == '5':


search()

else:
print('Invalid Input. Try again.')
input()

ORIGINAL TABLE:
OUTPUT WITHOUT CHOICE

CODE FOR INSERT


OUTPUT

CODE FOR DELETE


OUTPUT
CODE FOR UPDATE

OUTPUT

CODE FOR SEARCH


OUTPUT

CODE FOR DISPLAYING THE TABLE


OUTPUT

BIBLIOGRAPHY

 https://www.python.org/
 https://www.mysql.com/
 https://www.coursera.org/articles/what-is-python-used-for-a-
beginners-guide-to-using-python
 https://www.digitalocean.com/community/tutorials/what-is-
mysql
 https://www.tutorialspoint.com/mysql/mysql-introduction.htm

You might also like