Resturent Management
Resturent Management
SCHOOL, SAMBALPUR
AISSCE
ACADEMIC YEAR: 2023-24
PROJECT REPORT ON
“RESTAURANT MANAGEMENT SYSTEM”
ROLL NO :
NAME :
CLASS : XII
SUBJECT : COMPUTERSCIENCE
PGT (CS)
CERTIFICATE
laid down in the regulations of CBSE for the purpose of Practical [ Examination in
PGT(Computer Science)
External Examiner:
Name: _______________
Signature
Date:
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 03
02 INTRODUCTION 06
04 PROPOSED SYSTEM 08
07 FLOW CHART 23
08 SOURCE CODE 27
09 OUTPUT 55
10 TESTING 61
11 INSTALLATION PROCEDURE 65
13 BIBLIOGRAPHY 70
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely
on the encouragement and guidelines of many others. I take this opportunity to
express my gratitude to the people who have been instrumental in the
successful completion of this project.
The guidance and support received from all the members who
contributed and who are contributing to this project, was vital for the success of
the project. I am grateful for their constant support and help.
PROJECT ON ATM MACHINE MANAGEMENT SYSTEM
INTRODUCTION
Note :
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
programming skills helps in developing a good software.
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 outdated 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 paper work has to be done but now software product on 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.
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
INITIATION PHASE
PLANNING PHASE
• Further define and refine the functional and data requirements and
document them in the Requirements Document,
• Complete business process reengineering of the functions to be
supported (i.e., verify what information drives the business process,
what information is generated, who generates it, where does the
information go, and who processes it),
• Develop detailed data and process models (system inputs, outputs,
and the process.
• Develop the test and evaluation requirements that will be used to
determine acceptable system performance.
DESIGN PHASE
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted
by the user. In this phase, the system is installed to support the intended
business functions. System performance is compared to performance
objectives established during the planning phase. Implementation includes user
notification, user training, installation of hardware, installation of software onto
production computers, and integration of the system into daily work processes.
This phase continues until the system is operating in production in accordance
with the defined user requirements.
root=Tk()
root.geometry("3840x2160")
root.title("Restaurant management System")
tops=Frame(root, width=1600,relief=SUNKEN)
tops.pack(side=TOP)
f1=Frame(root,width=800,height=700,relief=SUNKEN, bd=20)
f1.pack(side=LEFT)
f2=Frame(root,width=800,height=700,relief=SUNKEN,bg='white',bd=10)
f2.pack(side=RIGHT)
localtime=time.asctime()
lblInfo=Label(tops,font=('arial',20,'bold'),text=localtime,fg="red",bd=10)
lblInfo.grid(row=1,column=0)
def Ref():
phn=rand.get()
if (Patties.get()==""):
CoPatties=0
else:
CoPatties=int(Patties.get())
if (Noodles.get()==""):
CoNoodles=0
else:
CoNoodles=int(Noodles.get())
if (Samosa.get()==""):
CoSamosa=0
else:
CoSamosa=int(Samosa.get())
if (Cocacola.get()==""):
CoD=0
else:
CoD=int(Cocacola.get())
if (Burger.get()==""):
CoBurger=0
else:
CoBurger=float(Burger.get())
if (Sandwich.get()==""):
CoSandwich=0
else:
CoSandwich=float(Sandwich.get())
CostofPatties =CoPatties * 20
CostofCocacola=CoD * 25
CostofNoodles = CoNoodles* 30
CostofSamosa = CoSamosa * 7
CostBurger = CoBurger* 40
CostSandwich=CoSandwich * 30
TotalCost=(CostofPatties+CostofCocacola+CostofNoodles+CostofSamosa+CostBurger+CostSandwich)
Total.set(FinalCost)
rand = StringVar()
Patties=StringVar()
Noodles=StringVar()
Samosa=StringVar()
Total=StringVar()
Cocacola=StringVar()
Burger=StringVar()
Sandwich=StringVar()
lblnote= Label(tops, font=('arial', 16,'bold'),text="NOTE: Please add a zero against the food item not
ordered by the customer")
lblnote.grid(row=2, column=0)
#RECEIPT#############################################################################
############
lblReference= Label(f2, font=('arial', 16),text="Reference:", bg='white')
lblReference.grid(row=0, column=0)
txtReference=Label(f2, font=('arial',16),textvariable=rand,bg="white",width=20)
txtReference.grid(row=0,column=1)
def qexit():
root.destroy()
btntotal=Button(f1,padx=16,pady=8,fg="black",font=('arial',16),width=10,text="Total",bg="red",command
=Ref)
btntotal.grid(row=6,column=1)
btnexit=Button(f1,padx=16,pady=8,fg="black",font=('arial',16),width=10,text="Exit",bg="red",command=q
exit)
btnexit.grid(row=6,column=2)
def reset():
Patties.set("")
Noodles.set("")
Samosa.set("")
Cocacola.set("")
Total.set("")
rand.set("")
Burger.set("")
Sandwich.set("")
btnreset=Button(f1,padx=16,pady=8,fg="black",font=('arial',16),width=10,text="Reset",bg="red",command
=reset)
btnreset.grid(row=6,column=3)
def save():
mycon=mc.connect(host="localhost", user="root", password='aaditya*1',database="receipts")
cursor=mycon.cursor()
r=rand.get()
p=Patties.get()
n=Noodles.get()
sa=Samosa.get()
co=Cocacola.get()
b=Burger.get()
sand=Sandwich.get()
total=Total.get()
s='INSERT INTO invoices values(%s,%s,%s,%s,%s,%s,%s,%s)'
t=[r,p,n,sa,co,b,sand,total]
cursor.execute(s,t)
mycon.commit()
print("value inserted")
mycon.close()
btnsave=Button(f1,padx=16,pady=8,fg="black",font=('arial',16),width=10,text="save",bg="red",command=
save)
btnsave.grid(row=7,column=3)
elif n==2:
mycon=mc.connect(host="localhost", user="root", password='aaditya*1',database="receipts")
cursor=mycon.cursor()
phnno=int(input("enter the phone no"))
print("total cost:")
s="select total from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of sandwiches:")
s="select sandwich from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of patties:")
s="select patties from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of noodles:")
s="select noodles from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of samosa:")
s="select samosa from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of coca cola:")
s="select cocacola from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
print("No of burgers:")
s="select burger from invoices where Phonenumber=%s;"
t=[phnno]
cursor.execute(s,t)
data=cursor.fetchall()
print(data)
mycon.commit()
mycon.close()
elif n==3:
mycon=mc.connect(host="localhost", user="root", password='aaditya*1',database="receipts")
cursor=mycon.cursor()
phnno=int(input("enter phn no whose record you wanna delete"))
s="delete from invoices where Phonenumber=%s"
t=[phnno]
cursor.execute(s,t)
mycon.commit()
mycon.close()
print("Record deleted")
TESTING
with information about the quality of the product or service under test[1] , with respect to
the context in which it is intended to operate. Software Testing also provides an objective,
independent view of the software to allow the business to appreciate and understand the
risks at implementation of the software. Test techniques include, but are not limited to,
the process of executing a program or application with the intent of finding software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that guided
its design and development, so that it works as expected and can be implemented with
the same characteristics. Software Testing, depending on the testing method employed,
can be implemented at any time in the development process, however the most test
effort is employed after the requirements have been defined and coding process has
been completed.
TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of view that a
test engineer takes when designing test cases.
BLACK BOX TESTING
Black box testing treats the software as a "black box," without any knowledge
of internal implementation. Black box testing methods include: equivalence partitioning,
boundary value analysis, all-pairs testing, fuzz testing, model-based testing, traceability
matrix, exploratory testing and specification-based testing.
SPECIFICATION-BASED TESTING
The black box tester has no "bonds" with the code, and a tester's perception is
very simple: a code must have bugs. Using the principle, "Ask and you shall receive,"
black box testers find bugs where programmers don't. But, on the other hand, black box
testing has been said to be "like a walk in a dark labyrinth without a flashlight," because
the tester doesn't know how the software being tested was actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the advantage
of "an unaffiliated opinion," on the one hand, and the disadvantage of "blind exploring,"
on the other.
White box testing, by contrast to black box testing, is when the tester has
access to the internal data structures and algorithms (and the code that implement these)
White box testing methods can also be used to evaluate the completeness of a
test suite that was created with black box testing methods. This allows the software team
to examine parts of a system that are rarely tested and ensures that the most important
function points have been tested.
ATM MACHINE:-
Pre-Requisites :
1. You have to have the following softwares for the successful running
of this software; which are
Installation :-
1. There will be two folders namely 'Python Files' and 'EXE files' in the
folder 'Source Code'.
2. The folder 'Python Files' will contain the source code of the
software in python language. If you are running the software by the 3rd step
mentioned below you have to pre install the following modules :-
3. Open the files in any python editors and run it to start and work on
the software.
4. The folder 'EXE files' will contain two files namely 'main.exe' and
'Tables_in_mysql.exe'.
6. Then run the file 'main.exe' to start and work on the software.
HARDWARE AND SOFTWARE REQUIREMENTS
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
BIBLIOGRAPHY
• Website: https://www.w3resource.com