Inbound 1632430624718454027
Inbound 1632430624718454027
Inbound 1632430624718454027
ABSTRACT
The businesses in restaurants are now growing constantly. At the same time, the need for
managing its operations and tasks arises. The best way to optimize these activities is growing
the business online as well. Today’s generation encourages high-tech services especially over the
Internet.
The project “Restaurant Management System” is implemented to reduce the manual work
and enhances the accuracy of work in a restaurant.
RESTAURANT MANAGEMENT SYSTEM is Desktop Application to restaurant
management. Hence the project is developed proficiently to help restaurant. This system wake to
provide service facility to restaurant and owners automate their BILLING OPERATIONS.
This system entirely reduces the unnecessary time waste inside the hotel as well as it reduces
unnecessary calculation.
As per the new rule Goods and Service Tax (GST) levy on both AC and non-AC restaurants
to 5%. Every restaurant charges 5% GST breakup as 2.5% State GST (SGST) and 2.5 % Central
GST (CGST) without any other service tax and any other VAT charges. We have developed a
RESTAURANT MANAGEMENT SYSTEM with inbuilt GST calculation in the bill, as well as it
shows the amount in rupees how much GST is applied.
RESTAURANT MANAGEMENT SYSTEM project fully developed in python language
which is currently demanded in market using python GUI Tkinter. Python is a programming
language that lets you work quickly and integrate systems more efficiently.
CONTENTS
Chapter 1- 3–4
INTRODUCTION TO PYTHON
Python Language Introduction
History of Python
Python Features
1 Python graphical user interfaces (GUIs)
Chapter 2- IMPLEMENTATION
Technologies used
2 Language used
8 – 16
CODE OF PROJECT
3 Chapter 3 - SCREENSHOTS 17 – 19
4 Chapter 4 - CONCLUSION 20
1-INTRODUCTION
PYTHON
Python Language Introduction
Python is a widely used general-purpose, high level programming language. It was initially designed by
Guido van Rossum in 1991 and developed by Python Software Foundation. It was mainly developed for
emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code.
Python is a programming language that lets you work quickly and integrate systems more efficiently.
Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to
be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has
fewer syntactical constructions than other languages.
Python is Interpreted − Python is processed at runtime by the interpreter. You do not need to
compile your program before executing it. This is similar to PERL and PHP.
Python is Interactive − You can actually sit at a Python prompt and interact with the interpreter
directly to write your programs.
Python is Object-Oriented − Python supports Object-Oriented style or technique of programming
that encapsulates code within objects.
Python is a Beginner's Language − Python is a great language for the beginner-level programmers
and supports the development of a wide range of applications from simple text processing to WWW
browsers to games.
History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research
Institute for Mathematics and Computer Science in the Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, and
Unix shell and other scripting languages.
Python is copyrighted. Like Perl, Python source code is now available under the GNU General Public
License (GPL).
Python is now maintained by a core development team at the institute, although Guido van Rossum still
holds a vital role in directing its progress.
Python Features
Python's features include −
Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax. This
allows the student to pick up the language quickly.
Easy-to-read − Python code is more clearly defined and visible to the eyes.
Easy-to-maintain − Python's source code is fairly easy-to-maintain.
Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy
way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit.
Creating a GUI application using Tkinter is an easy task. All you need to do is perform the following steps −
Import the Tkinter module.
Create the GUI application main window.
Add one or more of the above-mentioned widgets to the GUI application.
Enter the main event loop to take action against each event triggered by the user.
Example
#!/usr/bin/python
Import tkinter
top = tkinter.Tk( )
#Code to add widgets will go here…
top.mainloop ( )
Canvas The Canvas widget is used to draw shapes, such as lines, ovals,
2 polygons and rectangles, in your application.
Entry The Entry widget is used to display a single-line text field for accepting
4
values from a user.
5 Frame The Frame widget is used as a container widget to organize other widgets.
Label The Label widget is used to provide a single-line caption for other widgets.
6
It can also contain images.
Menu The Menu widget is used to provide various commands to a user. These
9
commands are contained inside Menubutton.
Message The Message widget is used to display multiline text fields for
10 accepting values from a user.
Spinbox The Spinbox widget is a variant of the standard Tkinter Entry widget,
16
which can be used to select from a fixed number of values.
Geometry Management
All Tkinter widgets have access to specific geometry management methods, which have the purpose of
organizing widgets throughout the parent widget area. Tkinter exposes the following geometry manager
classes: pack, grid, and place.
The pack() Method − This geometry manager organizes widgets in blocks before placing them in the
parent widget.
The grid() Method − This geometry manager organizes widgets in a table-like structure in the parent
widget.
The place() Method − This geometry manager organizes widgets by placing them in a specific
position in the parent widget.
CHAPTER-2 IMPLEMENTATION
Technologies used - Python 3.6.
Python Tkinter GUI
Language used - Python
CODE OF PROJECT
From tkinter import *
import random
import time
import datetime
root = Tk( )
root . geometry("1600x8000")
root . title("Restaurant Management System")
text_Input = StringVar( )
operator = ""
f1 = Frame(root,width=800,height=700,relief=SUNKEN)
f1 . pack(side=LEFT)
#=================================================================
# CALCULATOR
#=================================================================
def btnclick(numbers) :
global operator
operator = operator + str(numbers)
text_Input . set(operator)
def btnEqualsInput( ):
global operator
sumup = str(eval(operator))
text_Input . set(sumup)
operator = ""
localtime=time.asctime(time.localtime(time.time( )))
lblInfo=Label(Tops,font=('arial',20,'bold'),text=localtime,fg="Steel Blue",bd=10,anchor='w')
lblInfo.grid(row=1,column=0)
#====================================================================
# BILL CALCULATIONS
#====================================================================
def Ref( ):
x=random.randint(10908,500876)
randomRef=str(x)
rand.set(randomRef)
if (Idly.get( )==""):
CoIdly=0
else:
CoIdly=float(Idly.get( ))
if (Dosa.get( )==""):
CoDosa=0
else:
CoDosa=float(Dosa.get( ))
if (IceCream.get( )==""):
CoIceCream=0
if (Pulav.get()==""):
CoPulav=0
else:
CoPulav=float(Pulav.get( ))
if (Tea.get( )==""):
CoTea=0
else:
CoTea=float(Tea.get( ))
if (Drinks.get( )==""):
CoD=0
else:
CoD=float(Drinks.get( ))
CostofIdly = CoIdly * 25
CostofDrinks= CoD * 20
CostofDosa = CoDosa* 25
CostofIceCream = CoIceCream * 30
CostPulav = CoPulav* 50
CostTea = CoTea * 5
State_GST=(((CostofIdly+CostofDrinks+CostofDosa+CostofIceCream+CostPulav+CostTea)* 2.5)/100)
Total_cost = (CostofIdly+CostofDrinks+CostofDosa+CostofIceCream+CostPulav+CostTea)
Sgst.set(S_gst)
Cost.set(CostofMeal)
Cgst.set(C_gst)
Total.set(OverAllCost)
defqExit( ):
root.destroy( )
def Reset( ):
Tea.set("")
Idly.set("")
Dosa.set("")
IceCream.set("")
Pulav.set("")
Drinks.set("")
rand.set("")
Total.set("")
Sgst.set("")
Cgst.set("")
Cost.set("")
#====================================================================
# RESTAURANT MENU
#====================================================================
Tea=StringVar( )
Idly=StringVar( )
Dosa=StringVar( )
IceCream=StringVar( )
Pulav=StringVar( )
Drinks=StringVar( )
rand = StringVar( )
#====================================================================
# RESTAURANT BILL INFO
#====================================================================
#====================================================================
# BUTTONS
#====================================================================
btnTotal=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Total",bg="p
owder blue",command=Ref).grid(row=7,column=1)
btnReset=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Reset",bg="p
owder blue",command=Reset).grid(row=7,column=2)
btnExit=Button(f1,padx=16,pady=8,bd=16,fg="black",font=('arial',16,'bold'),width=10,text="Exit",bg="pow
der blue",command=qExit).grid(row=7,column=3)
root.mainloop()
3- SCREENSHOTS
GUI – Main display window with name of restaurant name current time and date with calculator
We have added a calculator for instant calculation –
We need to insert number of menu items taken by customer ,after inserting no. of items
/===== BILL NO
INCLUDING GST
CHAPTER - 4 CONCLUSION
This project has really been faithful and informative. It has made us learn and understand the many
trivial concepts of Python Language. As we have used python Tkinter as a GUI it provides various controls,
such as buttons, labels and text boxes to build a user friendly application.
The fast growing use of internet confirms the good future and scope of the proposed project.
Finally it has taught us a valuable lifelong lesson about the improvements and working and
interacting in a group.
References:
Books, Websites and Tutorial Videos
1. https://www.geeksforgeeks.org/python-gui-tkinter/
2. https://www.youtube.com/watch?v=-GhzpvvIXlM
3. https://www.youtube.com/watch?v=RJB1Ek2Ko_Y
4. https://www.youtube.com/watch?v=VMP1oQOxfM0
5. https://www.w3schools.com/python/
6. Computer science with Python and Database Management written by Sumita Arora – published by
Dhanpat Rai & Co. Ninth edition:2020