0% found this document useful (0 votes)
5 views

Computer Science1 .PDF

Uploaded by

jithu710123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Computer Science1 .PDF

Uploaded by

jithu710123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

COMPUTER SCIENCE

PROJECT ON
BAKERY
MANAGEMENT SYSTEM

PM SHRI KENDRIYA VIDYALAYA


OTTAPALAM

SUBMITTED BY

NAME: Abinav K J

CLASS: XII A ROLL NUMBER:

2024-25

1
CERTIFICATE

This is certified to be the bonafide work of the

student Abinav K J of class XII A in

Computer Science in the Academic Year

2024-2025.

External examiner Internal examiner

Principal

2
ACKNOWLEDGEMENT
I undertook this Project work, as a part of my XII-Computer science
course. I had tried to apply my best of knowledge and experience,
gained during the study and class work experience. However,
developing software systems is generally a quite complex and time-
consuming process. It requires a systematic study, insight vision and
professional approach during the design and development. Moreover,
the developer always feels the need, the help and good wishes of the
people near you, who have considerable experience and idea.

I would like to extend my sincere thanks and gratitude to my


teacher Mr. Jimmy John. I am very much thankful to our Principal
Mr. Santosh Kumar for giving valuable time and moral support to
develop
this software.

I would like to take the opportunity to extend my sincere thanks and


gratitude to my father Sri.Jayan P , and my mother Mrs.Dhanya V B
for being a source of inspiration and providing time and freedom to
develop this software project.
I also feel indebted to my friends Mis.Devika and Mr.Jithu for the
valuable suggestions during the project work.
[Abinav K J]
Class XII

3
TABLEOF
CONTENTS
1. INTRODUCTION ………………………….1
2.OBJECTIVE AND SCOPE………………..2
3.SOFTWAREDEVELOPMENT

TOOLS USED..…………………………………3
4.DATABASEDESIGN………………………..5
5.FRONT-ENDDESIGN.…………………….7 6.
SOURCE CODE.………….…………………..9 7.
OUTPUT SCREENS………………………..19 8.
SYSTEM REQUIREMENTS…………….30 9.
REFERENCES…………………………..…….31

4
1.INTRODUCTION

This software is developed to automate the working of a

bakery system. The purpose of this software is to


provide a Management Information System (MIS) to
provide facilities to store the information about the orders
baked goods that are available in the Bakery. It also
stores the information about the employees and the
facility of taking orders and canceling orders is also
facilitated by the use of this software.

This software was developed using MySQL as a back-end for


storing the data and the front-end used was Python. Both
the software's are free and open-source and so the cost of
creating the project was kept to a minimum. Both the
software provides robust platforms which are easy for
developing user-friendly software.

5
2. OBJECTIVE AND SCOPE
The objectives of the project are:

● To develop an MIS system for automating the working of a


bakery.

● To provide a facility for managing the customer details of


the library.
To provide the facility of managing the sales and pricing of

goods in the bakery.
To provide the facility of managing the admission of
● employees at the bakery.

This software will enhance the productivity of the bakery and


will be useful for quick & efficient working .The software is
developed in order to computerize and organize the activities
which were done manually hence all the necessary details
regarding order billing pricing
etc.., can be accessed quickly.

Since the project is developed in Python and MySQL the


interface of the project is console-based.

6
3. SOFTWARE DEVELOPMENT TOOLS USED

The following software development tools were used:


Python:

The front-end of the project has been developed in Python


language. Python is free and open source and many libraries exist
for performing different kinds of work with it.

Python is an interpreted, high-level, general-purpose


programming language. Created by Guido van Rossum and first
released in 1991, Python's design philosophy emphasizes code
readability with its notable use of significant whitespace. Its
language constructs and object-oriented approach aim to help
programmers write clear, logical code for small and large-scale
projects.

Python interpreters are available for many operating systems. A


global community of programmers develops and maintains
CPython, an open source implementation. Python is a
multi-paradigm programming language. Object-oriented
programming and structured programming are fully supported, and
many of its features support functional programming and
aspect-oriented programming. Python was designed to be highly
extensible. This compact modularity has made it particularly
popular as a means of adding programmable interfaces to existing
applications.
7
MySQL:
MySQL is an open-source relational database management
system (RDBMS). It is one of the most popular and widely used
open source platforms for storing enterprise data.
MySQL works on many hardware and software platforms. It
supports good developer interfaces and the documentation and
support from various user-driven communities is also good. It is
a fast, stable and true multi-user, multi-threaded SQL database
server.
It supports many useful programming features such as
cross-platform support, stored procedures, triggers, cursors,
online data definition language (DDL), updateable views and a
performance schema that collects and aggregates statistics
about server execution and query performance for monitoring
purposes.

Anaconda:
Anaconda is a free and open source integrated development
environment (IDE) for development of Python programming
language. It simplifies the package management and
deployment for Python programming language. It comes with
more than 1500 packages as well as the conda package and
virtual environment manager. It also includes a GUI, the
Anaconda Navigator, which is a graphical alternative to the
command line interface of Python.

8
4. DATABASE DESIGN
These tables were created and certain values were added in MySQL:

1. Items Table :

This table holds the details of all the items available at the bakery. Whenever a new item
is added to the menu, its details can be added to this table.

Column name Data Type Description

S_no INTEGER (PK) Unique identification of


item
Name of the product
Products VARCHAR(30) (Unique)
Cost of item
Cost INTEGER

2. Flavours Table:

This table contains all the flavours of cakes and cupcakes available at the bakery.
Whenever a new flavour is added to the menu, its details are added in this table.

Columnname DataType Description

S_no INTEGER(PK) Uniqueidentificationof


flavours
Nameoftheflavour
Flav VARCHAR(20)(Unique)

3. Cookie_Flavours Table:

This table contains all the flavours of cakes and cupcakes available at the bakery.
Whenever a new item is added to the menu, the details are added in this table.

Columnname DataType Description

S_no INTEGER(PK) Uniqueidentificationof


flavours
Nameofthecookieflavour
ck_Flav VARCHAR(20)(Unique)

9
4. Orders Table:
This table contains all the details of the orders taken at the bakery

Columnname DataType Description

cust_name CHAR(15)(Notnull) Nameofthecustomer

item CHAR(15)(Notnull) Theitembought

f_price INTEGER(Notnull) Totalfinalprice

date DATE Datewhenorderistaken

5. Workers Table:
This table contains all the details of the employees at the bakery..

Columnname DataType Description

S_no INTEGER(PK) Uniqueidentificationof


employee
Nameoftheemployee
emp_name CHAR(20)(Notnull)
Salaryofemployee
salary INTEGER(Notnull)
Departmentofemployee
dept VARCHAR(15)

10
CREATE TABLES
CREATE TABLE Items
(s_no INTEGER PRIMARY KEY,
products VARCHAR(20) UNIQUE,
cost INTEGER NOT NULL);

CREATE TABLE Flavours


(s_no INTEGER PRIMARY KEY,
flav VARCHAR(20) UNIQUE );

CREATE TABLE Cookie_Flavours


(s_no INTEGER PRIMARY KEY,
ck_flav VARCHAR(20) UNIQUE );

CREATE TABLE Orders


(cust_name CHAR(15) NOT NULL,
item CHAR(15) NOT NULL ,
f_price INTEGER NOT NULL );

CREATE TABLE Workers


(s_no INTEGER PRIMARY KEY,
emp_name CHAR(20) NOTNULL,
salary INTEGER NOT NULL
dept VARCHAR(15));

11
INSERT DATA

INSERT VALUES INTO ITEMS ITEMS

insert into items values(1, 'cake',300); s_no products cost


insert into items values (2, 'pastry', 200) 1 cake 300
insert into items values(3, 'cheesecake",
2 pastry 200
500)
3 cheesecake 500
insert into items values (4, 'cupcake", 60)
insert into items values (5, 'cookies", 50) 4 cupcake 60

5 cookies 50

INSERT VALUES INTO FLAVOURS FLAVOURS

insert into flavour values(1, "Vanilla')") s_no flav


insert into flavour values (2, 'Chocolate') 1 2 3 Vanila
insert into flavour values (3. "Strawberry")
45 Chocolate
insert into flavour values (4,
"Butter_scotch) Strawberry

insert into flavour values (5, 'Jasmine") Butter_scotch

Jasmine

COOKIE_FLAVOURS
INSERT VALUES INTO
COOKIE_FLAVOURS s_no flav
insert into items values(1, 'chocolate');
1 2 3 Vanila
insert into items values (2, 'choco-chip')
45 Chocolate
insert into items values(3, 'butter")
Strawberry
insert into items values (4, 'sugar’)
insert into items values (5, 'raisin’) Butter_scotch

Jasmine

12
INSERT VALUES INTO WORKERS
WORKERS
s_no emp_name salary dept
insert into items values
(1,'Manish',8000,’cashier ’);
1 Manish 8000 cashier
insert into items values
(2, 'Leo',7000,’cashier’)
2 Leo 7000 cashier
insert into items values
(3, 'Jen',15000,’chef’) 3 Jen 15000 chef
insert into items values
(4, 'Ray’,20000,’chef’) 4 Ray 20000 chef
insert into items values
(5, 'Jennifer’,23000,’chef’) 5 Jennifer 23000 chef

INSERT VALUES INTO


ORDERS ORDERS

insert into items values cust_name item f_price date


('Arun’,’Cake’,600,’2024-11-16’);
insert into items values Arun Cake 600 2024-11-16
('Niva',’Cookie’,150,’2024-11-17’)
insert into items values Niva Cookies 150 2024-11-17
('Kajol',’Pastry’,400,’2024-11-18’)
insert into items values
Kajol Pastry 400 2024-11-18
('Varun’,’Cake’,300,’2024-11-19’)
insert into items values
Varun Cake 300 2024-11-19
('Ken’,’Cupcake’,60,’2024-11-20’)
insert into items values
Ken Cupcake 60 2024-11-20
('Ella’,’Cheesecake’,500,’2024-11-21’)
insert into items values
('Ann’,’Cookies’,250,’2024-11-22’) Ella Cheesecake 500 2024-11-21

Ann Cookies 250 2024-11-22

13
5. FRONT END DESIGN

________________________________
| |
|........... WELCOME ...........|
|.............. TO .............|
|... BAKERY MANAGEMENT SYSTEM...|
| |
|...............................|
|_______________________________|

1. View Menu
2. Order items
3. View Flavours
4. Add New item to Menu
5. Update Cost of items
6. Add new flavour
7. View Employees
8. Add Employee
9. To View Orders And Sales
10.Exit

1. View Menu- This menu option is used to view all the items at the Bakery.
2. Order items - This menu option is used to order the items from the
bakery and add the record to the orders table.
3. View flavours - This menu option is to view the variety of flavours sold.
4. AddNewItem-Thismenuoptionisusedtoaddthedetailsofanewitem
to the menu.
5. UpdateCost-Thismenuoptionallowsyoutochangethecostofanyitem
in the menu.
6. AddNewFlavour-Thismenuoptionisusedtoaddthedetailsofa
flavour to the menu.
7. Viewemployees-Thismenuoptionistoviewthedetailsofall
employees at the bakery
8. Add employee - This menu option is used to add the details of a new
employee
9. ToViewOrdersAndSales-Thismenuoptionisusedtoviewthedetailsof
orders and sales over a week
10. Exit-Thisoptionisusedtoexittheapplication
14
6. SOURCE CODE
import mysql.connector
con=mysql.connector.connect(host= 'localhost',
user='root',password='sweet',database=’bakery’)
cur=con.cursor()

##################### TO VIEW ITEMS IN SHOP ###############################


def items():
print("Items in the shop:"). sql="select*from items"
cur.execute(sql) res=cur.fetchall() t=(['serial_no', 'products', 'cost'])
for serial_no, products, cost in res: print(serial_no, ":", "\t",
products, ":", "\t", "cost', cost) print(' ')

########################## ADDING A NEW ITEM ############################


def add_item():
sno=int(input(‘Enter the sno ’))
item=(‘Enter new item: ‘)
cost=int(input(‘Enter cost of item: ’))
cur.execute("insert into items values({},’{}’,{});”.format(sno,item,cost))
con.commit()
print(‘New item added to menu ‘)

####################### UPDATING COST OF AN ITEM ##########################


def updating_item():
sno=int(input(‘Enter the sno of the item’))
cost=int(input(‘Enter updated cost of item:))
cur.execute("update items set cost={} where s_no={};".format(sno,cost))
con.commit()
print(‘Cost of item updated’)

###################### TO VIEW CAKE FLAVOURS #############################


def variety():
print("Varieties available for Cakes:")
s="select from flavours"
cur.execute(s)
rs=cur.fetchall()
t=(['serial_no', 'varieties'])
for serial_no, varieties in rs:
print(serial_no, ":", "\t", varieties)

###################### TO VIEW CUPCAKE FLAVOURS ##########################


def cup_variety():
print("Varieties available for CupCakes:")
s="select from flavours"
cur.execute(s)
rs=cur.fetchall()
t=(['serial_no', 'varieties'])
for serial_no, varieties in rs:
print(serial_no, ":", "\t", varieties)

######################### ADDING A NEW FLAVOUR ##########################


def add_ck_flavour():
sno=int(input(‘The sno’))
flav=input(‘Enter new flavour: ‘)
cur.execute("insert into flavours values({},’{}’);”.format(sno,flav))
con.commit()
print(‘New flavour added to menu ‘)

15
########################## TO VIEW COOKIES FLAVOURS ######################
def cookie_variety():
print("Varieties available for Cookies:")
s="select from cookie_flavours"
cur.execute(s)
L=[]
rs=cur.fetchall()
t=(['serial_no', 'varieties'])
for serial_no, varieties in rs:
print(serial_no, ":", "\t", varieties)
L.append(varieties)
return L

############################## TO VIEW EMPLOYEES ########################


def workers():
print("Workers at the Bakery: ").
sql="select*from workers"
cur.execute(sql)
res=cur.fetchall()
t=(['serial_no', 'emp_name', 'salary', 'dept'])
for serial_no, emp_name, salary, dept in res:
print(serial_no, ":", "\t", emp_name, ":", "\t", salary, ":", "\t", dept’)
print(' ')

############################# ADDING A NEW EMPLOYEE #####################


def add_worker():
sno=int(input(‘The sno’))
emp=input(‘Enter new employee name: ‘)
sal=int(input(‘Enter salary: ‘))
dept=input(‘Enter the department: ‘)
cur.execute("insert into workers
values({},’{}’,{},’{}’);”.format(sno,emp,sal,dept))
con.commit()
print(‘New employee added to menu ‘)

####################### CHECK ORDERS & SALES OF A WEEK ####################


def check_sales():
s=input(‘Enter first day of week: ‘)
l=input((‘Enter last day of the week: ‘)
print(‘All orders this week: ‘)
cur.execute(“select* from orders where date between ‘{}’ and
‘{}’;”.format(s,l))
res=cur.fetchall()
t=(['cust_name', 'item', 'f_price','date'])
for cust_name, item, f_price, date in rs:
print(cust_name, ":", "\t", item, ":", "\t", f_price, ":", "\t", date )
print(‘Total saales this week: ’,end=‘ ’)

cur.execute(“select sum(f_price) as Sales from orders where date between ‘{}’


and ‘{}’;”.format(s,l))
res=cur.fetchall()
for x in cur():
print(x)

16
############################# USER INTERFACE ###############
def for_order():
print ("what do you want to order?\n")
items()
d=int(input("Enter your serial No of the item to buy:"))

########################### TO ORDER CAKES ##########################


if d==1:

def bill():
Bill_start()
da=cur.execute("Select cost from items")
da=cur.fetchall()
da=da[0][2]
c=int(da)
print("Total Quantity of ",f, “:”, qty)
print("total amount", qty*c)
cur.execute("insert into orders
values(’{}’,’{}’,{},’{}’);”.format(Name,”Cake”,qty*c,Date)
print("\n")
Bill_end()
return c

print("which cake do you want?")


variety()
print("## NOTE: All Varieties Of Cake Have Same Cost As That Of Cake ##")
print("Choose which cake do you want?")
ck=int(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")
f=’Vanilla cake’
bill()
print()

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!!!:")
f=’Chocolate cake’
bill()
print()

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!!!:")
f=’Strawberry cake’
bill()
print()

elif ck==4:
print("How much Quantity of Butterscotch cake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Butterscotch cake’
bill()
print()

17
elif ck==5:
print("How much Quantity of Jasmine cake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Jasmine Cake’
bill()
print()

#################################################################

##################### TO ORDER PASTRIES #########################

elif d==2:
def bill_2():
Bill_start()
print("Total quantity of pastry:", past)
print("Total amount=", past*c)
Bill_end()
cur.execute(“Insert into orders
values(’{}’,’{}’,{},’{}’);”.format(Name,”pastry”,past*c,Date)
print("\n")

print("How much pastry do you want?")


past=int(input("Enter Quantity of pastry:"))
print("You have successfully ordered", past, "pastry")
d=cur.execute("Select cost from items where products='pastry'"';')
d=cur.fetchall()
d=d[0][0]
c=int(d)

bill_2()

#################################################################

################### TO ORDER CHEESECAKES #########################


elif d=3:
def bill_3 ():
Bill_start()
print("Total quantity of Cheesecake:", cheesck)
print("Total amount=", cheesck*c)
print("\n")
cur.execute(“Insert into orders
values(’{}’,’{}’,{},’{}’);”.format(Name,”cheesecake”,cheesck*c,Date)
Bill_end()

print("How much juice do you want?")


cheesck=int(input("Enter your Qty of Cheesecake:"))
print("You have successfully ordered", cheesck , "juice")
d=cur.execute("Select cost from items where products='cheescake'; “)
d=cur.fetchall()
d=d[0]
c=int(d)
print("\n")

bill_3 ()

18
##################### TO ORDER CUPCAKES ###########################
elif d=4:
def bill_4():
Bill_start()
da=cur.execute("Select * from items")
da=cur.fetchall()
da=da[3][2]
c=int(da)
print("Total Quantity of ",f, “:”, qty)
print("total amount", qty*c)
Bill_end()
cur.execute(“Insert into orders
values(’{}’,’{}’,{},’{}’);”.format(Name,”cupcake”,qty*c,Date)
print("\n")

print("which Cupcake do you want?")


cup_variety()
print( "###NOTE: All Varieties Of Cupcakes Have Same Cost As That Of Cupcake ###""")
print("Choose which Cupcake do you want?")
ck=int(input("Enter your Choice:"))

if ck==1:
print("How much Quantity of Vanilla Cupcakes do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
print("\n")
f=’Vanilla Cupcake’
bill_4()
print()

elif ck==2:
print("How much Quantity of Chocolate Cupcake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Chocolate Cupcake’
bill_4()
print()

elif ck==3:
print("How much Quantity of Strawberry Cupcake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Strawberry Cupcake’
bill_4()
print()

elif ck==4:
print("How much Quantity of Butterscotch Cupcake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Butterscotch Cupcake’
bill_4()
print()

elif ck==5:
print("How much Quantity of Jasmine Cupcake do you want?")
qty=int(input("Enter Qty:"))
print("You have successfully ordered your item!!!:")
f=’Jasmine Cupcake’
bill_4()
print()
##################################################################
19
########################## TO ORDER COOKIES ######################

elif d=5:
def bill_5()
Bill_start()
print("Total quantity of Cookies:", cook)
print("Total amount=", cook*c)
Bill_end()
cur.execute(“Insert into orders
values(’{}’,’{}’,{},’{}’);”.format(Name,”cookies”,cook*c,Date)
print("\n")
cur.execute("Select * from items")
d=cur.fetchall()
d=d[4][2]
c=Int(d)
print("Choose which Cookie do you want?")
print("###NOTE: All Varieties Of Cookies Have Same Cost As That Of Cookies ###""")
L=cookie_variety()
ck=int(input("Enter your Choice:"))
f=L[ck-1]
print("How many cookies do you want?")
cook=Int(input("Enter quantity:")
print("You have successfully ordered", cook , "Cookies")
print("\n")
bill_5()

#################################################################

############################# BILLING CODE ############################

def Bill_start():
print("..................................................................”)
print("YOUR BILL")
print("..................................................................”)
print("Costumer's name:", Name)
print("contact no:", Phone)

Bill_end()
print(‘@@@@@@@@@@ THANK YOU FOR ORDERING THESE ITEMS @@@@@@@@@@’)
print(‘@@@@@@@@@@@@@@@ VISIT US AGAIN @@@@@@@@@@@@@@@@@@’)

#####################################################################

20
ENTRANCE
########################## CODE
##############################

print(“ _______________________________ “)
print(“ | | “)
print(“ |...........WELCOME...........| “)
print(“ |..............TO.............| “)
print(“ |...BAKERYMANAGEMENTSYSTEM...| “)
print(“ | | “)
print(“ |...............................| “)
print(“ |_______________________________| “)
Name=input(“Enter your name: “)
Phone=int(input(“Enter your phone number: “))
Date=input(‘Enter date like (YYYY-MM-DD): ‘)
print(‘\n’)
#MAIN CODE
def Main():
ch=’ ‘
while ch!=’N’ or ch!=’n’ :
def func():
print(‘‘‘PLEASE CHOSE
1. TO VIEW MENU
2. TO ORDER
3. TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU
5. TO UPDATE COST OF ITEMS
6. TO ADD NEW FLAVOUR
7. TO VIEW EMPLOYEES
8. TO ADD A NEW EMPLOYEES
9. TO VIEW ORDERS AND SALES OVER A WEEK
10.TO EXIT \n’’’)
choice= int(input(“Enter your choice: “))
If choice==10 :
return
elif choice==1 :
print(‘Items in the shop: ’)
items()
func()
elif choice==2:
for_order()
func()
elif choice==3:
print(‘press 1 to see cake flavours ’)
print(‘press 2 to see cupcake flavours: ’ )
e=int(input(‘CHOOSe: ‘))
if e==1:
variety()
func()
elif e==2:
cup_variety()
func()

elif choice==4:
add_item()
func()

elif choice==5:
updating_item()
func()

elif choice==6:
add_ck_flavour
func()

21
elif choice==7:
workers()
func()
elif choice==8:
add_worker()
func()
elif choice==9:
check_sales()
func()
else:
print(‘Wrong input”)
func()
fun()
ch=input(“ARE YOU SURE TO EXIT FROM PROGRAM (Y/N)? “)
If ch==’y’ or ch==’Y’ :
exit()
Main()

22
OUTPUT SCREENS
1. To View Menu
_______________________________
| |
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 1


Items in the shop:
1: 2: cake: pastry:
cost300
3: 4: cheesecake: cost300
5: cupcake: cost500
cookies: cost60
cost50

23
2. To Place An Order
_______________________________
| |
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC


Enter your phone number: 9999999999
Enter date like (YYYY-MM-DD): 2024-11-23
PLEASE CHOSE
1. TO VIEW MENU
2. TO ORDER
3. TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU
5. TO UPDATE COST OF ITEMS
6. TO ADD NEW FLAVOUR
7. TO VIEW EMPLOYEES
8. TO ADD A NEW EMPLOYEES
9. TO VIEW ORDERS AND SALES OVER A WEEK
10.TO EXIT

Enter your choice: 2


What do you want to order?
Items in the shop:
1: cake: cost300
2: pastry: cost300
3: cheesecake: cost500
4: cupcake: cost60
5: cookies: cost50

Enter your serial No of the item to buy: 1


Which cake do you want?
Varieties available for Cakes:
1: Vanila
2: Chocolate
3: Strawberry
4: Butter_scotch
5: Jasmine
## NOTE: All Varieties Of Cake Have Same Cost As That Of Cake ##
Choose which cake do you want?
Enter your Choice: 2
How much Quantity of Chocolate cake do you want?
Enter Qty:3
You have successfully ordered your item!!!
..................................................................
YOUR BILL
..................................................................
Costumer's name: ABC
contact no: 9999999999
Total Quantity of Chocolate Cake : 3
Total amount 900

@@@@@@@@@@ THANK YOU FOR ORDERING THESE ITEMS @@@@@@@@@@


@@@@@@@@@@@@@@@ VISIT US AGAIN @@@@@@@@@@@@@@@@@@

24
3. To View Cake and Cupcake Flavours
_______________________________
| |
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC


Enter your phone number: 9999999999
Enter date like (YYYY-MM-DD): 2024-11-23
PLEASE CHOSE
1. TO VIEW MENU
2. TO ORDER
3. TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU
5. TO UPDATE COST OF ITEMS
6. TO ADD NEW FLAVOUR
7. TO VIEW EMPLOYEES
8. TO ADD A NEW EMPLOYEES
9. TO VIEW ORDERS AND SALES OVER A WEEK
10.TO EXIT

Enter your choice: 3


Items in the shop:
1: cake: cost300
2: pastry: cost300
3: cheesecake: cost500
4: cupcake: cost60
5: cookies: cost50

Enter your choice: 3


press 1 to see cake flavours
press 2 to see cupcake flavours:
CHOOSe: 2
Varieties available for Cakes:
1: Vanila
2: Chocolate
3: Strawberry
4: Butter_scotch
5: Jasmine

25
4. To Add New Item To Menu
_______________________________
| |
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 4


Enter the sno: 6 Enter
new item: Brownie
Enter cost of item: 60
New item added to
menu

26
5. To Update Cost Of an Item
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 5


Enter the sno of item: 6
Enter updated cost of item: 65
Cost of item updated

27
6. Adding New Flavour To Menu
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 6


The sno : 6
Enter new flavour : Oreo
New flavour added to menu

28
7. Viewing Employees
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 7


Workers at the Bakery:
1: 2: Manish : : salary8000: departmentcashie
3: 4: Leo Jen : : salary7000: r
5: Ray : salary15000: departmentcashie
departmentche
Jennifer salary20000: rf
salary20000: departmentche
f
departmentche
f

29
8. Adding New Employee
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 8


Enter the sno: 6
Enter new employee name: Nile
Enter salary: 15000
Enter the department: cashier
New employee added to menu

30
9. To view orders and sales over a week
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 9


Enter first day of week: 2024-11-16
Enter last day of week: 2024-11-22
All orders this week:
Arun : : Cake : : 600: 2024-11-16
Niva : : Cookies : : 150: 2024-11-17
Kajol : : Pastry : : 400: 2024-11-18
Varun : Cake : 300: 2024-11-19
Ken Cupcake 60: 2024-11-20
Ella Cheesecake 500: 2024-11-21
Ann Cookies 250: 2024-11-22

Total sales this week: 2260

31
10. Exiting
_______________________________
||
| . . . . . . . . . . . W E L C O M E . . . . . . . . . . . |
| . . . . . . . . . . . . . . T O . . . . . . . . . . . . . |
| . . . B A K E R Y M A N A G E M E N T S Y S T E
| |
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Enter your name: ABC Enter your phone


number: 9999999999 Enter date like
(YYYY-MM-DD): 2024-11-23 PLEASE
CHOSE 1. TO VIEW MENU 2. TO ORDER 3.
TO VIEW CAKE AND CUPCAKE FLAVOURS
4. TO ADD NEW ITEM TO MENU 5. TO
UPDATE COST OF ITEMS 6. TO ADD NEW
FLAVOUR 7. TO VIEW EMPLOYEES 8. TO
ADD A NEW EMPLOYEES 9. TO VIEW
ORDERS AND SALES OVER A WEEK 10.TO
EXIT

Enter your choice: 9


ARE YOU SURE TO EXIT FROM PROGRAM (Y/N)? Y

32
SYSTEM REQUIREMENTS

HARDWARE:
➢ Intel Pentium G620 2.6 GHz
➢ 4 GB RAM
➢ Free Space 1 MB

SOFTWARE:
➢ Minimum Windows 7 32 bit
➢ Spyder Version 3.2.8 with mysql.connector with
random library
➢ MySQLVersion5.2.43

33
REFERENCES

The following resources were referred to in the


preparation of this project:
● LearningPythonbyMarkLutz5thEditionOreily
● HeadFirstPythonbyPaulBarry2ndEditionOreily
● PythonEssentialReferencebyDavidMBeazley
● MySQLCookbookbyPaulDuBois
● MySQLinaNutshellbyRussellDyer
● wikipedia.org
● python.org
● www.anaconda.com

34

You might also like