RESTAURANT Project 12 FINAL
RESTAURANT Project 12 FINAL
MANAGEMENT
SYSTEM!
CLASS-12TH A
INDEX
Acknowledgment
Certificate
What is our project
How does it work
Program
Output
Bibliography
A
C
K I would like to thank my
N computer science teacher, Ms.
Prajjya Dutta for guiding me
O throughout this project work. I
would also thank our lab
W assistant Mr. Praveen Kumar
who helped me to line up the
L project and helped me with
practical work.
E A special acknowledgement goes
to my principal Ms. Inderpreet
D Bhumra who gave me the
opportunity of this wonderful
G project, which also helped me in
doing a lot of research and i
E came to know about so many
new things.
M I wish to thank my parents as
well for their support and
E encouragement without which i
would not have completed this
N project in the limited time frame.
In the end i would like to thank
T my friends who
motivated me to continue this
CERTIFICAT
E
This is to certify that Akshita Sachdeva of class XII-A has
completed her project to my total satisfaction. I certify that
this project is up to my expectation and as per the issued
CBSE guidelines.
____________
Signature
Ms. Prajjya Dutta
(Computer Science Teacher)
WHAT IS MY
PROJECT?
#Funtions
def reset()
buttonsave=Button(Buttonframe,text='Save',font=('arial',
18,'bold'),bg='light grey',command=save)
buttonsave.grid(row=0,column=2)
buttonmenu=Button(Buttonframe,text='Menu',font=('arial',
18,'bold'),bg='light grey',command=menu)
buttonmenu.grid(row=0,column=3)
buttonreset=Button(Buttonframe,text='Reset',font=('arial',
18,'bold'),bg='light grey',command=reset)
buttonreset.grid(row=0,column=4)
#text receipt
textreceipt=Text(Receiptframe,font=('arial',12,'bold'),bd=3,
width=46,height=12)
textreceipt.grid(row=0,column=0)
#calculator
operator=' '
def buttonclick(numbers):
global operator
operator=operator+numbers
calculatorfield.delete(0,END)
calculatorfield.insert(END,operator)
def clear():
global operator
operator=' '
calculatorfield.delete(0,END)
def answer():
global operator
result=str(eval(operator))#eval operates
calculatorfield.delete(0,END)
calculatorfield.insert(0,result)
operator=''
calculatorfield=Entry(calculatorframe,font=('arial',16,
'bold'),width=35,bd=6)
calculatorfield.grid(row=0,column=0,columnspan=4)
button7=Button(calculatorframe,text='7',font=('arial',12,
'bold'),fg='yellow',bg='Slate Gray4',
bd=6,width=9,command=lambda:buttonclick('7'))
button7.grid(row=1,column=0)
button8=Button(calculatorframe,text='8',font=('arial',12,
'bold'),fg='yellow',bg='Slate Gray4',
bd=6,width=9,command=lambda:buttonclick('8'))
button8.grid(row=1,column=1)
button9=Button(calculatorframe,text='9',font=('arial',12,
'bold'),fg='yellow',bg='Slate Gray4',
bd=6,width=9,command=lambda:buttonclick('9'))
button9.grid(row=1,column=2)
buttonplus=Button(calculatorframe,text='+',font=('arial',12
,'bold'),fg='yellow',bg='SlateGray4',
bd=6,width=9,command=
lambda:buttonclick('+'))
buttonplus.grid(row=1,column=3)
button4=Button(calculatorframe,text='4',font=('arial',12,
'bold'),fg='yellow',bg='SlateGray4',bd=6,width=9,
command=lambda:buttonclick('4'))
button4.grid(row=2,column=0)
button5=Button(calculatorframe,text='5',font=('arial',12,
'bold'),fg='red4',bg='white',bd=6,width=9,
command=lambda:buttonclick('5'))
button5.grid(row=2,column=1)
button6=Button(calculatorframe,text='6',font=('arial',12,
'bold'),fg='red4',bg='white',bd=6,width=9,
command=lambda:buttonclick('6'))
button6.grid(row=2,column=2)
buttonMinus=Button(calculatorframe,text=
'-',font=('arial',12,'bold'),fg='yellow',bg='Slate
Gray4',bd=6,width=9,
command=lambda:buttonclick('-'))
buttonMinus.grid(row=2,column=3)
button1=Button(calculatorframe,text='1',font=('arial',12,
'bold'),fg='yellow',bg='Slate Gray4',bd=6,width=9,
command=lambda:buttonclick('1'))
button1.grid(row=3,column=0)
button2=Button(calculatorframe,text='2',font=('arial',12,
'bold'),fg='red4',bg='white',bd=6,width=9,
command=lambda:buttonclick('2'))
button2.grid(row=3,column=1)
button3=Button(calculatorframe,text='3',font=('arial',12,
'bold'
buttonDiv=Button(calculatorframe,text='/',font=('arial',12,'
bold'),fg='yellow',bg='SlateGray4',
bd=6,width=9,
command=lambda:buttonclick('/'))
buttonDiv.grid(row=4,column=3)
root.mainloop()
OUTPUT