Bakery Management System Project Python and SQL
Bakery Management System Project Python and SQL
PROJECT WORK
1|Page
INDEX
1 ACKNOWLEDGEMENT 4
2 INTRODUCTION AND 5
OBJECTIVE OF THE
PROJECT
3 HARDWARE AMD 6
SOFTWARE
REQUIREMENTS
4 PROPOSED SYSTEM 7
5 MY SQL DATABASE 8
TABLE- SCHOOLBAKERY
7 BIBLIOGRAPHY 22
2|Page
ACKNOWLEDGEMENT
3|Page
4|Page
5|Page
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible
human beings of be really wants to stand against
today’s merciless competition where not to wise
saying “to err is human” no longer valid, it’s out-
dated to rationalize your mistake. So, to keep
pace with time, to bring about the best result
without malfunctioning and greater efficiency so
to replace the unending heaps of flies with a
much sophisticated hard disk of the computer.
One has to use the data management software.
Software has been an ascent in atomization
various organisations. Many software products
working are now in markets, which have helped
in making the organizations work easier and
efficiently. Data management initially had to
maintain a lot of ledgers and a lot of paperwork
has to be done but now software producton this
organization has made their work faster and
easier. 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.
6|Page
7|Page
SOURCE CODE
ADD OR DELETE ITEM PIECES FROM DATABASE
import mysql.connector
# Create a cursor
cursor = cnx.cursor()
while True:
8|Page
# Get the item name and number of pieces from the user
item = input("Enter the item name: ")
pieces = int(input("Enter the number of pieces: "))
if action == "add":
# Add the specified number of pieces to the item in the
database
cursor.execute("UPDATE schoolbakery SET pieces =
pieces + %s WHERE item = %s", (pieces, item))
cnx.commit()
print("Pieces added successfully!")
elif action == "delete":
# Delete the specified number of pieces from the item in
the database
cursor.execute("UPDATE schoolbakery SET pieces =
pieces - %s WHERE item = %s", (pieces, item))
cnx.commit()
print("Pieces deleted successfully!")
else:
9|Page
10 | P a g e
while True:
# Ask the user if they want to add an item to the cart
choice = input("Do you want to add an item to the
cart? (yes/no): ")
if choice.lower() == "yes":
# Get the item name and number of pieces from the
user
item = input("Enter the item name: ")
pieces = int(input("Enter the number of pieces: "))
11 | P a g e
13 | P a g e
cart_items = []
total_price = 0
while True:
# Ask the user if they want to add an item to the cart
action = input("Do you want to add an item to the
cart? (yes/no): ")
if action.lower() == "yes":
# Get the item name and quantity from the user
item = input("Enter the item name: ")
14 | P a g e
16 | P a g e
17 | P a g e
while True:
# Get the item name from the user
item = input("Enter the item name: ")
if item_type:
else:
print(f"Item not found in the database")
# Ask the user if they want to select more items
choice = input("Do you want to select more items?
(yes/no): ")
if choice.lower() != "yes":
break
19 | P a g e
20 | P a g e
BIBLIOGRAPHY
21 | P a g e