0% found this document useful (0 votes)
103 views19 pages

Class 12 Board Exam Project Bakery Management

Uploaded by

banuprabha1982
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)
103 views19 pages

Class 12 Board Exam Project Bakery Management

Uploaded by

banuprabha1982
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/ 19

RAMCO VIDYA MANDIR

SR. SEC. SCHOOL

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.

I certify this project up to my expectation & as per


guidelines issued by CBSE, New Delhi leading to award of
annual examination of the year 2024-2025.

ROLL NO:

DATE:

INTERNAL EXAMINER EXTERNAL EXAMINER

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.

We are especially indebted to our Principal,


Smt.Sharmila Vetrivel who has always been a source
of encouragement and support and without her
inspiration this project would not have been a
successful one. We would like to place on record
heartfelt thanks to her.

We also thank our parents for their motivation


and support. We would like to thank all those who had
helped directly or indirectly towards the completion of
this project.

Finally, we would like to express my sincere


appreciation for all the other students of my batch for
their team work, timely help and the fine times that
we all shared together.
Table of Content

 INTRODUCTION

 ABSTRACT

 SYSTEM REQUIREMENTS

 SOURCE CODE

 OUTPUT

 BIBLIOGRAPHY
INTRODUCTION

The Bakery Management System is a

computerized solution designed to streamline

the operations of SRN Bakery. This Python-

based application interfaces with MySQL

database to manage bakery items, order

processing, and billing operations. The

system aims to replace traditional manual

methods of bakery management with a more

efficient digital approach. It provides a user-

friendly interface for customers to view

products, place orders, and receive bills while

helping the bakery staff maintain accurate

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:

 OPERATING SYSTEM : WINDOWS 10

 PLATFORM : PYTHON IDLE 3.10

 DATABASE : MYSQL

 LANGUAGES : PYTHON

HARDWARE SPECIFICATION:

 PROCESSOR : INTEL CORE i5

 HARD DISK : SATA 40 GB OR ABOVE

 RAM : 16 GB

NOTE:
For Python-MySQL connectivity, following data have been
used:

 HOST-localhost,

 USER-root,

 PASSWORD-12345678,

 DATABASE-FOOD_SERVICE #change as per system


CODING
import mysql.connector

# Connect to the database


con = mysql.connector.connect(host='localhost', user='root',
password='12345678')
cur = con.cursor()

# Create the database and tables if they don't exist


cur.execute("CREATE DATABASE IF NOT EXISTS food_service")
cur.execute("USE food_service")

cur.execute("""CREATE TABLE IF NOT EXISTS branch_itanagar (


sno INT,
products VARCHAR(20),
cost INT)""")

cur.execute("""CREATE TABLE IF NOT EXISTS flavours (


sno INT,
varieties VARCHAR(20))""")

# Insert data into the tables


cur.execute("INSERT INTO branch_itanagar VALUES (1, 'Cake', 50)")
cur.execute("INSERT INTO branch_itanagar VALUES (2, 'Pastry', 20)")
cur.execute("INSERT INTO branch_itanagar VALUES (3, 'Juice', 60)")
cur.execute("INSERT INTO branch_itanagar VALUES (4, 'Butter', 20)")
cur.execute("INSERT INTO branch_itanagar VALUES (5, 'Cheese', 30)")

cur.execute("INSERT INTO flavours VALUES (1, 'Vanilla')")


cur.execute("INSERT INTO flavours VALUES (2, 'Chocolate')")
cur.execute("INSERT INTO flavours VALUES (3, 'Strawberry')")
cur.execute("INSERT INTO flavours VALUES (4, 'Butter Scotch')")
cur.execute("INSERT INTO flavours VALUES (5, 'Jasmine')")

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()

d = input("Enter your serial No of the item to buy:")

if d == '1':
print("Which cake do you want?")
item()

print("### NOTE: All Varieties Of Cake Have Same Cost As That Of


Cake ###")
print("Choose which cake do you want?")
ck = input("Enter your Choice:")

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])

print("Total Quantity of Vanilla Cake:", qty)


print("Total amount:", qty * c)
print("\n")
bill()
print("\n")

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])

print("Total Quantity of Chocolate Cake:", qty)


print("Total amount:", qty * c)
print("\n")
bill()
print("\n")

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])

print("Total Quantity of Strawberry Cake:", qty)


print("Total amount:", qty * c)
print("\n")
bill()
print("\n")
elif ck == '4':
print("How much Quantity of Butter-scotch 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])

print("Total Quantity of Butter-scotch Cake:", qty)


print("Total amount:", qty * c)
print("\n")
bill()
print("\n")

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])

print("Total Quantity of Jasmin Cake:", qty)


print("Total amount:", qty * c)
print("\n")
bill()
print("\n")
else:
print("Invalid Input!!!")

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()

print("Total quantity of pastry:", past)


print("Total amount:", past * c)
print("\n")
bill()
print("\n")

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()

print("Total quantity of juice:", jus)


print("Total amount:", jus * c)
print("\n")
bill()
print("\n")
elif d == '4':
print("How much butter do you want?")
but = int(input("Enter Quantity of Butter:"))
print("You have successfully ordered", but, "butter")

# Get the cost of butter


cur.execute("SELECT cost FROM branch_itanagar WHERE
products='butter'")
d = cur.fetchall()
c = int(d[0][0])
print("\n")
Bill()
print("Total quantity of butter:", but)
print("Total amount:", but * c)
print("\n")
bill()
print("\n")

elif d == '5':
print("How much cheese do you want?")
che = int(input("Enter your choice:"))
print("You have successfully ordered", che, "cheese")

# Get the cost of cheese


cur.execute("SELECT cost FROM branch_itanagar WHERE
products='cheese'")
d = cur.fetchall()
c = int(d[0][0])
print("\n")
Bill()

print("Total quantity of cheese:", che)


print("Total amount:", che * c)
print("\n")
bill()
print("\n")

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)

name = input("Enter Your Name:")


phone = input("Enter your Phone Number:")

#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

ch = input("ARE YOU SURE TO EXIT FROM PROGRAM(Y/N)?")


if ch in 'Yy':
exit()
elif ch in 'Nn':
Main()
else:
print("Invalid!!!")
Main()
OUTPUT
BIBLIOGRAPHY

 https://www.scribd.com

 https://www.wikipedia.org

 https://www.google.com

 Class 12 NCERT Book By Sumita Arora

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy