Comp Project
Comp Project
Comp Project
VELAPPANCHAVADI, CHENNAI-77.
A PROJECT REPORT ON
Principal
ACKNOWLEDGMENT
FAHIMA AFSA.B
CLASS:XII
INDEX
1. Introduction
2. Proposed system
3. System requirement
4. Block diagram
5. Flow chart
6. Source code
7. Output
8. Future enhancement
9. Conclusion
10. Bibliography
INTRODUCTION
1. Hardware:
✓ Processor
✓ Keyboard
✓ Minimum memory-2GB
2. Software
✓ Operating system –OS7,OS10
✓ Python IDLE
✓ MySQL
WHY WE CHOSE PYTHON ?
• Speed Limitations.
A single MySQL database can store several tables at a time and can
store thousands of records in it.
def accessdatabase():
creation()
if a=='Y':
print('3 Leave')
b=int(input('Choice:'))
if b==1:
print('5 Quit') ⇾
c=int(input('Choice:'))
if c==1:
NewGame()
elif c==2:
ModifyDetails()
elif c==3:
DeleteGame()
elif c==4:
ViewGames()
elif c==5:
return
else:
elif b==2:
print('5 Quit') ⇾
e=int(input('Choice:'))
If e==1:
NewRating()
elif e==2:
ModifyRating()
elif e==3:
DeleteRating()
elif e==4:
ViewRating()
elif e==5:
return
elif b==3:
return
else:
print("no match")
else:
print("access denied")
def creation():
import mysql.connector
db=mysql.connector.connect(host="localhost",user="root",password="rishWA
NTH",database="game")
cursor=db.cursor()
def NewGame():
mydb =
mysql.connector.connect(host="localhost",user="root",password="rishWANT",
database="game")
cursor = mydb.cursor()
val = (g_n,ge_n,t_s,R_d)
cursor.execute(sql, val)
mydb.commit()
print()
accessdatabase()
def ModifyDetails():
import mysql.connector
mydb =
mysql.connector.connect(host="localhost",user='root',password='rishWANTH'
database="game")
cursor = mydb.cursor()
cursor.execute("UPDATE Game_Details SET Genre=%s, TeamSize
=%s,ReleaseDate =%s
mydb.commit()
print()
accessdatabase()
def DeleteGame():
print(' ')
import mysql.connector
mydb =
mysql.connector.connect(host="localhost",user='root',password='rishWANTH',
database="game")
cursor = mydb.cursor()
cursor.execute(query,(g_n,))
mydb.commit()
print()
accessdatabase()
def ViewGames():
import mysql.connector as M
P=
M.connect(host="localhost",user='root',password='rishWANTH',database="ga
me")
L = P.cursor()
for (GameName,Genre,Teamsize,Releasedate) in L:
print("✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦”)
print("Game → ",GameName)
print("Genre → ",Genre)
print("ReleaseDate → ",Releasedate)
print("✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦”)
L.close()
accessdatabase()
def NewRating():
import mysql.connector
mydb =
mysql.connector.connect(host="localhost",user='root',password='rishWANTH',
database="game")
cursor = mydb.cursor()
sql = "INSERT INTO Game_Response( GameName, PlayerBase, Profit)
VALUES(%s ,%s ,%s)"
val = (g_n,p_b,p_r)
cursor.execute(sql, val)
mydb.commit()
print()
accessdatabase()
def ModifyRating():
import mysql.connector
mydb =
mysql.connector.connect(host="localhost",user='root',password='rishWANTH',
database="game")
cursor = mydb.cursor()
mydb.commit()
print()
accessdatabase()
def DeleteRating():
print(' ')
import mysql.connector
mydb =
mysql.connector.connect(host="localhost",user='root',password='rishWANTH',
database="game")
cursor = mydb.cursor()
cursor.execute(query,(g_n,))
mydb.commit()
print()
accessdatabase()
def ViewRating():
import mysql.connector as M
P=
M.connect(host="localhost",user='root',password='rishWANTH',database="ga
me")
L = P.cursor()
for (GameName,PlayerBase,Profit) in L:
print("✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦”)
print("GameName → ",GameName)
print("Player Base → ",PlayerBase)
print("Profit → ",Profit)
print("✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦”)
L.close()
accessdatabase()
accessdatabase()
OUTPUT
(Intel)] on win32
>>>
RESTART:
C:/Users/Rishwanth/AppData/Local/Programs/Python/Python37-
32/game1
project.py
1 Game Details ⇾
3 Leave ⇾
Choice:1
4 View Games ⇾
5 Quit ⇾
Choice:1
Enter Details
1 Game Details ⇾
3 Leave ⇾
Choice:3
3 Delete Game ⇾
4 View Games ⇾
5 Quit ⇾
Choice:2
1 Game Details ⇾
3 Leave ⇾
Choice:1
3 Delete Game ⇾
4 View Games ⇾
5 Quit ⇾
Choice:3
Done
1 Game Details ⇾
3 Leave ⇾
Choice:1
3 Delete Game ⇾
4 View Games ⇾
5 Quit ⇾
Choice:4
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Game → ASPHALT9
Genre → racing
Team Size → 8
ReleaseDate → 2020-12-26
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Game → FIFO
Genre → shooting
Team Size → 3
ReleaseDate → 2021-03-30
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Game → Lycoas
Team Size → 1
ReleaseDate → 2020-12-12
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Game → PKXD
Team Size → 4
ReleaseDate → 2020-12-03
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Genre → haunting
Team Size → 3
ReleaseDate → 2021-03-11
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
Genre → chasing
Team Size → 1
ReleaseDate → 2020-12-02
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
And Here it is
1 Game Details ⇾
3 Leave ⇾
Choice:2
Game Rating
1 New Game Rating ⇾
2 Modify Rating ⇾
3 Delete Rating ⇾
4 View Rating ⇾
5 Quit ⇾
Choice:1
Enter Details
1 Game Details ⇾
3 Leave ⇾
Choice:2
Game Rating
2 Modify Rating ⇾
3 Delete Rating ⇾
4 View Rating ⇾
5 Quit ⇾
Choice:4
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
GameName → freefire
Player Base → M
Profit → 23000
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
GameName → ASPAULT9
Profit → 3400000
✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦✦
And Here it is
1 Game Details ⇾
3 Leave ⇾
Choice:1
3 Delete Game ⇾
4 View Games ⇾
5 Quit ⇾
Choice:5
CONCLUSION