Professional Documents
Culture Documents
V SCHOOL, SIJUA
entitled
groups.
Ameer Hamza
XII “D”
ACKNOWLEDGEMENT
This project would not have been possible without the collective
Ameer Hamza
GUIDE CERTIFICATE
Mr Mukund Gupta
(I.P Teacher)
SCHOOL CERTIFICATE
Principal
DISSERTATION AND APPROVAL
CERTIFICATE
2024.
Remark(s)
Internal Examiner External Examiner
(M.K Gupta)
PREFACE
customer satisfaction..
3. Sales and Billing: The system will facilitate smooth and accurate sales
transactions by automating the billing process. It will generate real-time
invoices, calculate accurate totals, and provide detailed receipts,
simplifying the checkout process for both customers and cashiers.
One has to use the data management software. Software has been an
ascent in atomization various organizations. Many software products
working are now in markets, which have helped in making the
organizations work easier and efficiently.
Now only this software has to be loaded on the computer and work
can be done. This prevents a lot of time and money. The work
becomes fully automated and any information regarding the
organization can be obtained by clicking the button. Moreover, now
it's an age of computers of and automating such an organization gives
the better look.
FLOW CHART
INITIATION PHASE
The Initiation Phase begins when a business sponsor identifies a need
or an opportunity.
import time
import random as rd
def grocery():
def addgrocery():
print("\n")
print("=" * 55)
print("\n")
time.sleep(2)
data = (mid, name, mf, dom, doe, mg, content, price, qty)
cr = mydb.cursor()
cr.execute(q, data)
print("\nGrocery Inserted.......!!!!")
print("=" * 55)
print("\n")
mydb.commit()
def showgrocery():
print("=" * 55)
cr = mydb.cursor()
cr.execute(q)
res = cr.fetchall()
print("\n")
print("-" * 95)
print("Id\tName\t\tDate_of_Expiry\t\tPrice\t\tQty")
print("-" * 95)
for k in res:
print("-" * 95)
print("\n")
def restock():
d = (qty, mid)
cr = mydb.cursor()
cr.execute(q, d)
print("\n")
print("=" * 55)
print("Grocery Restocked......!!")
print("=" * 55)
print("\n")
mydb.commit()
def search():
cr = mydb.cursor()
cr.execute(q)
k = cr.fetchone()
if k == None:
print("=" * 55)
else:
print("\nGrocery Found......!!")
print("=" * 55)
print("\n")
print("-" * 95)
print("Id\tName\t\tDate_of_Expiry\t\tPrice\t\tQty")
print("-" * 95)
print("-" * 95)
print()
def deletem():
cr = mydb.cursor()
cr.execute(q)
print("\nGrocery Deleted......!!\n")
print("=" * 55)
print("\n\n")
mydb.commit()
def billing():
amount = 0
grocery =""
cr = mydb.cursor()
while True:
cr.execute(q)
res = cr.fetchone()
if res == None:
print("=" * 55)
else:
price = int(res[-2])
amount += bill
if ans.lower() == "no":
break
data= (bno,cname,grocery,amount,bdate)
cr.execute(q,data)
mydb.commit()
def showbills():
print("=" * 55)
cr = mydb.cursor()
cr.execute(q)
res = cr.fetchall()
print("\n")
print("-" * 95)
print("BillNo\tName\t\tGrocery\t\t\t\tAmount\t\tDateofBill")
print("-" * 95)
for k in res:
print("-" * 95)
print("\n")
while True:
print("=" * 55)
print("=" * 55)
print()
print()
print("press 8 - To Exit")
print("\n")
if opt == 1:
addgrocery()
elif opt == 2:
restock()
elif opt == 3:
showgrocery()
elif opt == 4:
search()
elif opt == 5:
deletem()
elif opt == 6:
billing()
elif opt == 7:
showbills()
elif opt == 8:
print("=" * 55)
print("*" * 95)
break
else:
break
# setting conection
if mydb.is_connected():
print("=" * 55)
print("=" * 55)
grocery()
print("=" * 55)
print("=" * 55)
else:
mydb.commit()
print("Database Initialised")
MYSQL TABLE
BILL TABLE
GROCERY TABLE
OUTPUT OF PROJECT
MENU
IF YOU PRESS 1
IF YOU PRESS 2
IF YOU PRESS 3
IF YOU PRESS 4
IF YOU PRESS 5
IF YOU PRESS 6
IF YOU PRESS 7
TESTING
HARDRWARE REQUIREMENTS:
SOFTWARE REQUIREMENTS:
• WINDOWS OS
• PYTHON
• MYSQL CONNECTOR LIBRARY
• MYSQL SOFTWARE
CONCLUSION
In the course of developing the Grocery Shop Management System using
Python and MySQL, a journey of learning and application unfolded. This project
served as an invaluable opportunity to merge theoretical knowledge with hands-
on experience, reinforcing key programming concepts and database management
skills.
1. Programming Proficiency:
2. Database Management:
Here are some potential areas of future scope for the Grocery
Management System project:
Books:
Websites:
• Python.org
• Mysql.com