Class 12 Board Exam Project Bakery Management
Class 12 Board Exam Project Bakery Management
2024-2025
A PROJECT ON
BAKERY MANAGEMENT
submitted by
NITHISH P, 12 STD
ROSHAN PRASATH N.D, 12 STD
SUSHAANTH HARI P.M, 12 STD
UNDER THE GUIDANCE OF
MRS. M.TAMILARASI B.TECH.(IT), B.Ed.,
DEPARTMENT OF COMPUTER SCIENCE,
RAMCO VIDYA MANDIR SR. SEC. SCHOOL,
ARIYALUR
CERTIFICATE
This is to certify that
NITHISH.P
ROSHAN PRASAD N.D
SUSHAANTH HARI P.M
of Class XII of Ramco Vidya Mandir Sr. Sec. School has done
their project on “Bakery Management” under my
supervision. They have individually taken more interest and
have shown at most sincerity in completion of this project.
ROLL NO:
DATE:
PRINCIPAL
ACKNOWLEDGEMENT
It is with pleasure that we acknowledge our
sincere gratitude to our teacher, Mrs.Tamilarasi mam
who taught and undertook the responsibility of
teaching the subject Computer Science. We have
benefited greatly from her classes.
INTRODUCTION
ABSTRACT
SYSTEM REQUIREMENTS
SOURCE CODE
OUTPUT
BIBLIOGRAPHY
INTRODUCTION
records of transactions.
ABSTRACT
The Bakery Management System is a
database-driven application developed using
Python and MySQL that automates the core
operations of a bakery business. The system
maintains a comprehensive database of bakery
products including cakes (with various flavors like
Vanilla, Chocolate, Strawberry, Butter Scotch, and
Jasmine), pastries, juices, butter, and cheese along
with their respective prices. Customers can interact
with the system to view the menu, place orders,
and receive detailed bills. The application features
a modular design with separate functions for
displaying items, processing orders, and
generating bills. It incorporates error handling to
manage invalid inputs and provides a clean user
interface with clear prompts and formatted output.
The system's main objectives are to improve
operational efficiency, enhance customer service,
and maintain accurate sales records. This project
demonstrates the practical application of database
management and programming concepts in solving
real-world business problems.
SYSTEM REQUIREMENTS
SOFTWARE SPECIFICATION:
DATABASE : MYSQL
LANGUAGES : PYTHON
HARDWARE SPECIFICATION:
RAM : 16 GB
NOTE:
For Python-MySQL connectivity, following data have been
used:
HOST-localhost,
USER-root,
PASSWORD-12345678,
con.commit()
# Display items in the shop
def items():
print("Items in the shop:")
sql = "SELECT * FROM branch_itanagar"
cur.execute(sql)
res = cur.fetchall()
print('SERIAL_NO',"\t",'PRODUCTS',"\t",'COST')
for serial_no,products,cost in res:
print(serial_no,":","\t\t",products,":","\t",cost)
# VARIETIES OF CAKE
def item():
print("Varities available for Cakes:")
sql = "SELECT * FROM flavours"
cur.execute(sql)
res = cur.fetchall()
print('SERIAL_NO',"\t",'VARIETIES')
for serial_no, varieties in res:
print(serial_no,":","\t\t",varieties)
# USER INTERFACE
def for_order():
print("What do you want to order?")
items()
if d == '1':
print("Which cake do you want?")
item()
if ck == '1':
print("How much Quantity of Vanilla cake do you want?")
qty = int(input("Enter Qty:"))
print("You have successfully ordered your item!!!")
print("\n")
Bill()
# Get the cost of the cake
cur.execute("SELECT cost FROM branch_itanagar")
da = cur.fetchall()
c = int(da[0][0])
elif ck == '2':
print("How much Quantity of Chocolate cake do you want?")
qty = int(input("Enter Qty:"))
print("You have successfully ordered your item!!!")
print("\n")
Bill()
# Get the cost of the cake
cur.execute("SELECT cost FROM branch_itanagar")
da = cur.fetchall()
c = int(da[0][0])
elif ck == '3':
print("How much Quantity of Strawberry cake do you want?")
qty = int(input("Enter Qty:"))
print("You have successfully ordered your item!!!")
print("\n")
Bill()
# Get the cost of the cake
cur.execute("SELECT cost FROM branch_itanagar")
da = cur.fetchall()
c = int(da[0][0])
elif ck == '5':
print("How much Quantity of Jasmin cake do you want?")
qty = int(input("Enter Qty:"))
print("You have successfully ordered your item!!!")
print("\n")
Bill()
# Get the cost of the cake
cur.execute("SELECT cost FROM branch_itanagar")
da = cur.fetchall()
c = int(da[0][0])
elif d == '2':
print("How much pastry do you want?")
past = int(input("Enter Quantity of pastry:"))
print("You have successfully ordered", past, "pastry")
# Get the cost of pastry
cur.execute("SELECT cost FROM branch_itanagar WHERE
products='pastry'")
d = cur.fetchall()
c = int(d[0][0])
print("\n")
Bill()
elif d == '3':
print("How much juice do you want?")
jus = int(input("Enter your Qty of Juice:"))
print("You have successfully ordered", jus, "juice")
# Get the cost of juice
cur.execute("SELECT cost FROM branch_itanagar WHERE
products='juice'")
d = cur.fetchall()
c = int(d[0][0])
print("\n")
Bill()
elif d == '5':
print("How much cheese do you want?")
che = int(input("Enter your choice:"))
print("You have successfully ordered", che, "cheese")
else:
print("Invalid Input!!!")
#BILLING CODE
def Bill():
print('.'*50)
print("\t\tYOUR BILL")
print('.'*50)
print("Customer's name:", name)
print("contact no:", phone)
def bill():
print("@"*20,end='')
print("THANK YOU!",end='')
print("@"*20)
print("@"*50)
def exit():
print("\n")
print("@"*11,end='')
print("THANK YOU! VISIT US AGAIN!!!",end='')
print("@"*11)
print("@"*50)
#ENTRANCE CODE
print("\n\t\tWELCOME TO OUR SRN BAKERY")
print("\t\t~~~~~~~~~~~~~~~~~~~~~~~~~")
print("\n"*2)
#MAIN CODE
def Main():
ch = ''
while ch != 'N' or ch != 'n':
def funct():
print("\n\nPLEASE CHOOSE\n1 FOR CUSTOMER \n2 FOR
EXIT\n\n")
choice = input("Enter your choice:")
if choice == '2':
return False
elif choice == '1':
print('press 1 to See the MENU', sep='.......')
print('press 2 to Order any ITEM')
print('press 3 to EXIT')
e = input("Enter your choice:")
if e == '3':
return
elif e == '1':
items()
funct()
elif e == '2':
for_order()
else:
print("Invalid Input!!!")
else:
print("Invalid Input!!!")
flag=funct()
if flag == False:
break
https://www.scribd.com
https://www.wikipedia.org
https://www.google.com