Nothing Special   »   [go: up one dir, main page]

Akshay Python

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 36

CHAPTER 1

SOFTWARE DEVELOPMENT

Software development is the process of computer programming, documenting, testing and bug
fixing involved in creating and maintaining applications and frameworks resulting in a software
product. Software development is a process of writing and maintaining the source code, but in a
broader sense, it includes all that is involved between the conception of the desired software
through to the final manifestation of the software, sometimes in a planned and structured
process. Therefore, software development may include research, new development, prototyping,
modification, reuse, re-engineering, maintenance or any or any other activates that result in
software products.

SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)


DEFINITION

The systems development life cycle (SDLC), also referred to as the application development life-
cycle, is a term used in system engineering, information system and software engineering to
describe a process for planting, creating, testing and deploying an information system. The
system development life cycle concept applies to a range of hardware and software
configurations, as a system can be composed of hardware only, software only, or a combination
of both.

A systems development lifecycle (SDLC) adheres to important phases that are essential to
developers, such as planning , analysis , design and implementation. A number of SDLC models
have been created: waterfall, fountain and spiral build and fix, rapid prototyping, incremental,
and synchronise and stabilise. The oldest of these and the best one is the waterfall model: a
sequence of stages in which output of each stage becomes the input for the next. These stages
can be characterized and divided up in different way, including the following :

 Problem definition
 Feasibility study
 System analysis

1
 System Design
 Implementation
 Post –implementation
 Maintenance

PHASES OF SYSTEM DEVELOPMENT LIFECYCLE

SDLC PHASES

1. REQUIREMENT ANALYSIS

Software development lifecycle begins with requirements analysis, phase were the stakeholders
discuss the requirements of the software that needs to be developed to achieve a goal. The aim of
the requirements of analysis phase is to capture the details of each requirement and to make sure
everyone understands the scope of the work and how each requirement is going to be fulfilled. It
is a normal practice to also discuss how each requirement will be tested and so tester can add
great value in participating analysis meeting.

2. DESIGN

The next stage of Software development lifecycle is design phase. During the design phase
developers and technical architects start the high level design of the software and system to be
able to deliver to each requirement. The technical details of each design is discussed with the
stake holders and various parameters such as risk, technologies to be used, capability of the team,
project constraints, time, and budget are reviewed and then the best design approach is selected
for the product.

3. IMPLEMENTATION

After the requirements and design activities is completed the next phase of Software
development lifecycle is the implementation or development of the software. In this phase,
developers start coding according to the requirements and design that are discussed in previous
phase. Database admin creates the necessary data in the database, front-end developers create the
necessary interfaces and GUI to interact with the back-end all based on guidelines and
procedures defined by the company. Developers also right unit tests for each component to test
how the new code they have written, review each other’s codes’, create bills, and deploy
software to an environment. The cycle of development is repeated until the requirements are met.

4. TESTING

Testing is the last phase of Software development lifecycle before the software is delivered to
customers. During testing experienced testers start to test the system against the requirements.
The testers aim to find defects within the systems as well as verifying whether the application
behaves as expected and according to what was documented in the requirements analysis phase.
Testers can either use a test script to execute each test and verify the results or use exploratory
testing which is more of an experienced base approach.

Figure 1.1 SDLC Phases.


5. DEPLOYEMENT AND MANTAINENCE

Once the software has been fully tested and no high priority issues remain in software, it is time
to deploy to production whether customers can use the systems. Once a version of the software is
released to the production, there is usually a production team that looks after any post production
issue. If an issue is encountered in the production of development team is informed depending
on how sever the issue is, it might either require a hot fix which is created and shipped in short
period of time or if not very severe, it can wait until the next version of the software.

WATERFALL MODEL

The WATERFALL MODEL is sequential design process, often used in Software development
process, in which progress is seen as flowing steadily downward (like a waterfall) through the
phase of Conception, Initiation, Analysis, Design, Construction, Testing, Production/
Implementation and maintenance.

Figure 1.2 Waterfall model.


The waterfall development model originates in the manufacturing and construction industries.
Highly structured physical environments in which after-the effect changes are prohibitively
costly, is not impossible. Since no formal Software development methodologies existed at the
time, this hardware oriented model was simply adapted for the Software development.

The first known presentation describing use of similar phases in software engineering was held
by Herbert D. Bennigton at Symposium on advanced programming methods for digital
computers on 29 June 1956. This presentation was about the development of the software for a
SAGE, in 1983 the paper was republished with foreward by Benington pointing out the process
was not in fact performed in the strict top-down, but the dependent on a prototype.
CHAPTER 2

INTRODUCTION TO PROJECT

ABOUT PROJECT

The purposed system “Restaurant Billing System” is the solution of the described limitations. In
this case the computer system will deal with billing and keep a record of which stock has come
out of the business, but the ordering itself will be done by manual means. This is a highly
accurate type of system and is the one that will save the most time and money over the long
term. The system will handle electronic payments, and can also be integrated with a customer
loyalty scheme to keep customers details, which can be essential for a busy restaurant. The
following modules make our system very compatible and useful for any restaurant management:

Add Items: The system user should add items which he/she wants to sale. So Item name, type,
price etc. features of an item should be added to the database.

PROJECT PLAN

 This idea of developing the online food billing system was inspired by day to day activity.
With our software user is able to calculate billing online. It helps the user to calculate GST
online.
 To develop this Website, Python and HTML languages were used. The Python programming
language we design the website and connect front end with back end.
 To fully develop this website we use Pycharm editor and django s to run website on local server
and also help to create the database.
 The design of this website is very simple and also easy to understand. It can be used by anyone
to learn.

SYSTEM REQUIREMENT
OS version Microsoft Windows 7/8/10 (32-bit or 64-bit), 64-bit required for native
debugging
Mac OS X 10.10 (Yosemite) or higher, up to 10.13 (macOS High Sierra)
GNOME or KDE desktop Linux (64 bit capable of running 32-bit
applications)(GNU C Library (glibc) 2.19+)

RAM 3 GB RAM minimum, 8 GB RAM recommended

Disk space 2 GB of available disk space minimum,4 GB recommended

Python version Python3

Screen resolution 1280×800 minimum screen resolution

Webcam

INTRODUCTION TO PYTHON

Python is a popular programming language. It was created by Guido van Rossum, and released
in 1991.

It is used for:

 web development (server-side)


 software development
 mathematics
 system scripting

FEATUREs OF PYTHON

 Python can be used on a server to create web applications.


 Python can be used alongside software to create workflows.
 Python can connect to database systems. It can also read and modify files.
 Python can be used to handle big data and perform complex mathematics.
 Python can be used for rapid prototyping, or for production-ready software development.

ADVANTAGES OF PYTHON

 Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
 Python has a simple syntax similar to the English language.
 Python has syntax that allows developers to write programs with fewer lines than some other
programming languages.
 Python runs on an interpreter system, meaning that code can be executed as soon as it is
written. This means that prototyping can be very quick.
 Python can be treated in a procedural way, an object-orientated way or a functional way.
CHAPTER 3

SOURCE CODE

SOURCE CODING:
from Tkinter import *
import time
import datetime
import random
import tkMessageBox

root =Tk()
root.geometry("1350x750+0+0")
root.title("Food Billing System")
root.configure(background='orange')

Tops = Frame(root,bg='orange',bd=20,pady=5,relief=RIDGE)
Tops.pack(side=TOP)

lblTitle=Label(Tops,font=('arial',60,'bold'),text='Food Billing
System',bd=21,bg='black',
fg='cornsilk',justify=CENTER)
lblTitle.grid(row=0)

ReceiptCal_F = Frame(root,bg='orange',bd=10,relief=RIDGE)
ReceiptCal_F.pack(side=RIGHT)

Buttons_F=Frame(ReceiptCal_F,bg='orange',bd=3,relief=RIDGE)
Buttons_F.pack(side=BOTTOM)
Cal_F=Frame(ReceiptCal_F,bg='orange',bd=6,relief=RIDGE)
Cal_F.pack(side=TOP)

Receipt_F=Frame(ReceiptCal_F,bg='orange',bd=4,relief=RIDGE)
Receipt_F.pack(side=BOTTOM)

MenuFrame = Frame(root,bg='orange',bd=10,relief=RIDGE)
MenuFrame.pack(side=LEFT)
Cost_F=Frame(MenuFrame,bg='orange',bd=4)
Cost_F.pack(side=BOTTOM)
Drinks_F=Frame(MenuFrame,bg='orange',bd=4)
Drinks_F.pack(side=TOP)

Drinks_F=Frame(MenuFrame,bg='orange',bd=4,relief=RIDGE)
Drinks_F.pack(side=LEFT)
Food_F=Frame(MenuFrame,bg='orange',bd=4,relief=RIDGE)
Food_F.pack(side=RIGHT)
###################################################variables########
########################################

var1=IntVar()
var2=IntVar()
var3=IntVar()
var4=IntVar()
var5=IntVar()
var6=IntVar()
var7=IntVar()
var8=IntVar()
var9=IntVar()
var10=IntVar()
var11=IntVar()
var12=IntVar()
var13=IntVar()
var14=IntVar()
var15=IntVar()
var16=IntVar()

DateofOrder = StringVar()
Receipt_Ref = StringVar()
PaidTax = StringVar()
SubTotal = StringVar()
TotalCost = StringVar()
CostofFood = StringVar()
CostofDrinks = StringVar()
ServiceCharge = StringVar()

text_Input = StringVar()
operator = ""

E_Sprite = StringVar()
E_Pepsi = StringVar()
E_DietCoke = StringVar()
E_Mojito = StringVar()
E_Cappuccino = StringVar()
E_Fanta = StringVar()
E_CocaCola = StringVar()
E_ColdCoffee = StringVar()
E_HotDog = StringVar()
E_VegBurger = StringVar()
E_Pasta = StringVar()
E_HamBurger = StringVar()
E_Sandwich = StringVar()
E_Fires = StringVar()
E_Spagetti = StringVar()
E_Fazitas = StringVar()

E_Sprite.set("0")
E_Pepsi.set("0")
E_DietCoke.set("0")
E_Mojito.set("0")
E_Cappuccino.set("0")
E_Fanta.set("0")
E_CocaCola.set("0")
E_ColdCoffee.set("0")

E_HotDog.set("0")
E_VegBurger.set("0")
E_Pasta.set("0")
E_HamBurger.set("0")
E_Sandwich.set("0")
E_Fires.set("0")
E_Spagetti.set("0")
E_Fazitas.set("0")

DateofOrder.set(time.strftime("%d/%m/%y"))

##########################################Function
Declaration####################################################

def iExit():
iExit=tkinter.messagebox.askyesno("Exit Restaurant System","Confirm if you
want to exit")
if iExit > 0:
root.destroy()
return

def Reset():

PaidTax.set("")
SubTotal.set("")
TotalCost.set("")
CostofFood.set("")
CostofDrinks.set("")
ServiceCharge.set("")
txtReceipt.delete("1.0",END)

E_Sprite.set("0")
E_Pepsi.set("0")
E_DietCoke.set("0")
E_Mojito.set("0")
E_Cappuccino.set("0")
E_Fanta.set("0")
E_CocaCola.set("0")
E_ColdCoffee.set("0")

E_HotDog.set("0")
E_VegBurger.set("0")
E_Pasta.set("0")
E_HamBurger.set("0")
E_Sandwich.set("0")
E_Fires.set("0")
E_Spagetti.set("0")
E_Fazitas.set("0")

var1.set(0)
var2.set(0)
var3.set(0)
var4.set(0)
var5.set(0)
var6.set(0)
var7.set(0)
var8.set(0)
var9.set(0)
var10.set(0)
var11.set(0)
var12.set(0)
var13.set(0)
var14.set(0)
var15.set(0)
var16.set(0)

txtSprite.configure(state=DISABLED)
txtPepsi.configure(state=DISABLED)
txtDietCoke.configure(state=DISABLED)
txtMojito.configure(state=DISABLED)
txtCappuccino.configure(state=DISABLED)
txtFanta.configure(state=DISABLED)
txtCocaCola.configure(state=DISABLED)
txtColdCoffee.configure(state=DISABLED)
txtHotDog.configure(state=DISABLED)
txtVegBurger.configure(state=DISABLED)
txtPasta.configure(state=DISABLED)
txtHamBurger.configure(state=DISABLED)
txtSandwich.configure(state=DISABLED)
txtFires.configure(state=DISABLED)
txtSpagetti.configure(state=DISABLED)
txtFazitas.configure(state=DISABLED)

def CostofItem():
Item1=float(E_Sprite.get())
Item2=float(E_Pepsi.get())
Item3=float(E_DietCoke.get())
Item4=float(E_Mojito.get())
Item5=float(E_Cappuccino.get())
Item6=float(E_Fanta.get())
Item7=float(E_CocaCola.get())
Item8=float(E_ColdCoffee.get())

Item9=float(E_HotDog.get())
Item10=float(E_VegBurger.get())
Item11=float(E_Pasta.get())
Item12=float(E_HamBurger.get())
Item13=float(E_Sandwich.get())
Item14=float(E_Fires.get())
Item15=float(E_Spagetti.get())
Item16=float(E_Fazitas.get())

PriceofDrinks =(Item1 * 65) + (Item2 * 75) + (Item3 * 99) + (Item4 * 130) +


(Item5 * 180) + (Item6 * 75) + (Item7 * 75) + (Item8 * 89)

PriceofFood =(Item9 * 260) + (Item10 * 175) + (Item11 * 255) + (Item12 *


480) + (Item13 * 240) + (Item14 * 110) + (Item15 * 340) + (Item16 * 213)

DrinksPrice = "Rs",str('%.2f'%(PriceofDrinks))
FoodPrice = "Rs",str('%.2f'%(PriceofFood))
CostofFood.set(FoodPrice)
CostofDrinks.set(DrinksPrice)
SC = "Rs",str('%.2f'%(1.59))
ServiceCharge.set(SC)

SubTotalofITEMS = "Rs",str('%.2f'%(PriceofDrinks + PriceofFood + 1.59))


SubTotal.set(SubTotalofITEMS)

Tax = "Rs",str('%.2f'%((PriceofDrinks + PriceofFood + 1.59) * 0.15))


PaidTax.set(Tax)

TT=((PriceofDrinks + PriceofFood + 1.59) * 0.15)


TC="Rs",str('%.2f'%(PriceofDrinks + PriceofFood + 1.59 + TT))
TotalCost.set(TC)

def chkSprite():
if(var1.get() == 1):
txtSprite.configure(state = NORMAL)
txtSprite.focus()
txtSprite.delete('0',END)
E_Sprite.set("")
elif(var1.get() == 0):
txtSprite.configure(state = DISABLED)
E_Sprite.set("0")

def chkPepsi():
if(var2.get() == 1):
txtPepsi.configure(state = NORMAL)
txtPepsi.focus()
txtPepsi.delete('0',END)
E_Pepsi.set("")
elif(var2.get() == 0):
txtPepsi.configure(state = DISABLED)
E_Pepsi.set("0")

def chk_DietCoke():
if(var3.get() == 1):
txtDietCoke.configure(state = NORMAL)
txtDietCoke.delete('0',END)
txtDietCoke.focus()
elif(var3.get() == 0):
txtDietCoke.configure(state = DISABLED)
E_DietCoke.set("0")

def chk_Mojito():
if(var4.get() == 1):
txtMojito.configure(state = NORMAL)
txtMojito.delete('0',END)
txtMojito.focus()
elif(var4.get() == 0):
txtMojito.configure(state = DISABLED)
E_Mojito.set("0")

def chk_Cappuccino():
if(var5.get() == 1):
txtCappuccino.configure(state = NORMAL)
txtCappuccino.delete('0',END)
txtCappuccino.focus()
elif(var5.get() == 0):
txtCappuccino.configure(state = DISABLED)
E_Cappuccino.set("0")

def chk_Fanta():
if(var6.get() == 1):
txtFanta.configure(state = NORMAL)
txtFanta.delete('0',END)
txtFanta.focus()
elif(var6.get() == 0):
txtFanta.configure(state = DISABLED)
E_Fanta.set("0")

def chk_CocaCola():
if(var7.get() == 1):
txtCocaCola.configure(state = NORMAL)
txtCocaCola.delete('0',END)
txtCocaCola.focus()
elif(var7.get() == 0):
txtCocaCola.configure(state = DISABLED)
E_CocaCola.set("0")

def chk_ColdCoffee():
if(var8.get() == 1):
txtColdCoffee.configure(state = NORMAL)
txtColdCoffee.delete('0',END)
txtColdCoffee.focus()
elif(var8.get() == 0):
txtColdCoffee.configure(state = DISABLED)
E_ColdCoffee.set("0")

def chk_HotDog():
if(var9.get() == 1):
txtHotDog.configure(state = NORMAL)
txtHotDog.delete('0',END)
txtHotDog.focus()
elif(var9.get() == 0):
txtHotDog.configure(state = DISABLED)
E_HotDog.set("0")

def chk_VegBurger():
if(var10.get() == 1):
txtVegBurger.configure(state = NORMAL)
txtVegBurger.delete('0',END)
txtVegBurger.focus()
elif(var10.get() == 0):
txtVegBurger.configure(state = DISABLED)
E_VegBurger.set("0")

def chk_Pasta():
if(var11.get() == 1):
txtPasta.configure(state = NORMAL)
txtPasta.delete('0',END)
txtPasta.focus()
elif(var11.get() == 0):
txtPasta.configure(state = DISABLED)
E_Pasta.set("0")

def chk_HamBurger():
if(var12.get() == 1):
txtHamBurger.configure(state = NORMAL)
txtHamBurger.delete('0',END)
txtHamBurger.focus()
elif(var12.get() == 0):
txtHamBurger.configure(state = DISABLED)
E_HamBurger.set("0")

def chk_Sandwich():
if(var13.get() == 1):
txtSandwich.configure(state = NORMAL)
txtSandwich.delete('0',END)
txtSandwich.focus()
elif(var13.get() == 0):
txtSandwich.configure(state = DISABLED)
E_Sandwich.set("0")

def chk_Fires():
if(var14.get() == 1):
txtFires.configure(state = NORMAL)
txtFires.delete('0',END)
txtFires.focus()
elif(var14.get() == 0):
txtFires.configure(state = DISABLED)
E_Fires.set("0")

def chk_Spagetti():
if(var15.get() == 1):
txtSpagetti.configure(state = NORMAL)
txtSpagetti.delete('0',END)
txtSpagetti.focus()
elif(var15.get() == 0):
txtSpagetti.configure(state = DISABLED)
E_Spagetti.set("0")

def chk_Fazitas():
if(var16.get() == 1):
txtFazitas.configure(state = NORMAL)
txtFazitas.delete('0',END)
txtFazitas.focus()
elif(var16.get() == 0):
txtFazitas.configure(state = DISABLED)
E_Fazitas.set("0")

def Receipt():
txtReceipt.delete("1.0",END)
x=random.randint(10908,500876)
randomRef= str(x)
Receipt_Ref.set("Bill"+ randomRef)
txtReceipt.insert(END,'Receipt Ref:\t\t\t'+Receipt_Ref.get() +'\t'+
DateofOrder.get() +'\n')
txtReceipt.insert(END,'Items\t\t\t\t'+"Cost of Items \n")
txtReceipt.insert(END,'Sprite:\t\t\t\t\t' + E_Sprite.get() +'\n')
txtReceipt.insert(END,'Pepsi:\t\t\t\t\t'+ E_Pepsi.get()+'\n')
txtReceipt.insert(END,'DietCoke:\t\t\t\t\t'+ E_DietCoke.get()+'\n')
txtReceipt.insert(END,'Mojito:\t\t\t\t\t'+ E_Mojito.get()+'\n')
txtReceipt.insert(END,'Cappuccino:\t\t\t\t\t'+ E_Cappuccino.get()+'\n')
txtReceipt.insert(END,'Fanta:\t\t\t\t\t'+ E_Fanta.get()+'\n')
txtReceipt.insert(END,'CocaCola:\t\t\t\t\t'+ E_CocaCola.get()+'\n')
txtReceipt.insert(END,'ColdCoffee:\t\t\t\t\t'+ E_ColdCoffee.get()+'\n')
txtReceipt.insert(END,'HotDog:\t\t\t\t\t'+ E_HotDog.get()+'\n')
txtReceipt.insert(END,'VegBurger:\t\t\t\t\t'+ E_VegBurger.get()+'\n')
txtReceipt.insert(END,'Pasta:\t\t\t\t\t'+ E_Pasta.get()+'\n')
txtReceipt.insert(END,'HamBurger:\t\t\t\t\t'+ E_HamBurger.get()+'\n')
txtReceipt.insert(END,'Sandwich:\t\t\t\t\t'+ E_Sandwich.get()+'\n')
txtReceipt.insert(END,'Fires:\t\t\t\t\t'+ E_Fires.get()+'\n')
txtReceipt.insert(END,'Spagetti:\t\t\t\t\t'+ E_Spagetti.get()+'\n')
txtReceipt.insert(END,'Fazitas:\t\t\t\t\t'+ E_Fazitas.get()+'\n')
txtReceipt.insert(END,'Cost of Drinks:\t\t\t\t\t'+ CostofDrinks.get()+'\nTax
Paid:\t\t\t\t'+PaidTax.get()+"\n")
txtReceipt.insert(END,'Cost of Foods:\t\t\t\t'+ CostofFood.get()
+'\nSubTotal:\t\t\t\t'+str(SubTotal.get())+"\n")
txtReceipt.insert(END,'Service Charge:\t\t\t\t'+ ServiceCharge.get()+'\nTotal
Cost:\t\t\t\t'+str(TotalCost.get())+"\n")

#########################################Drinks###################
#################################################
Sprite=Checkbutton(Drinks_F,text='Sprite',variable=var1, > > bg='orange',command=chkSprite).grid(row=0,sticky=W)
Pepsi=Checkbutton(Drinks_F,text='Pepsi',variable=var2, >nt=('arial',18,'bold'),
bg='orange',command=chkPepsi).grid(row=1,sticky=W)
DietCoke=Checkbutton(Drinks_F,text='DietCoke',variable=var3, >ue=0,font=('arial',18,'bold'),
bg='orange',command=chk_DietCoke).grid(row=2,sticky=W)
Mojito=Checkbutton(Drinks_F,text='Mojito',variable=var4, >font=('arial',18,'bold'),
bg='orange',command=chk_Mojito).grid(row=3,sticky=W)
Cappuccino=Checkbutton(Drinks_F,text='Cappuccino',variable=var5, >ffvalue=0,font=('arial',18,'bold'),
bg='orange',command=chk_Cappuccino).grid(row=4,sticky=W)
Fanta=Checkbutton(Drinks_F,text='Fanta',variable=var6, >nt=('arial',18,'bold'),
bg='orange',command=chk_Fanta).grid(row=5,sticky=W)
CocaCola=Checkbutton(Drinks_F,text='CocaCola',variable=var7, >lue=0,font=('arial',18,'bold'),
bg='orange',command=chk_CocaCola).grid(row=6,sticky=W)
ColdCoffee=Checkbutton(Drinks_F,text='ColdCoffee',variable=var8, >ffvalue=0,font=('arial',18,'bold'),
bg='orange',command=chk_ColdCoffee).grid(row=7,sticky=W)
##############################################Drink
Entry#############################################################
##

txtSprite =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_Sprite)
txtSprite.grid(row=0,column=1)

txtPepsi =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_Pepsi)
txtPepsi.grid(row=1,column=1)

txtDietCoke =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_DietCoke)
txtDietCoke.grid(row=2,column=1)

txtMojito=
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_Mojito)
txtMojito.grid(row=3,column=1)

txtCappuccino =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_Cappuccino)
txtCappuccino.grid(row=4,column=1)

txtFanta =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_Fanta)
txtFanta.grid(row=5,column=1)

txtCocaCola =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_CocaCola)
txtCocaCola.grid(row=6,column=1)

txtColdCoffee =
Entry(Drinks_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=DISABL
ED
,textvariable=E_ColdCoffee)
txtColdCoffee.grid(row=7,column=1)
#############################################Foods################
######################################################

HotDog = Checkbutton(Food_F,text="HotDog\t\t\t ",variable=var9,>
offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_HotDog).grid(row=0,sticky=W)
VegBurger = Checkbutton(Food_F,text="VegBurger",variable=var10, >1, offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_VegBurger).grid(row=1,sticky=
W)
Pasta = Checkbutton(Food_F,text="Pasta ",variable=var11, >offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_Pasta).grid(row=2,sticky=W)
HamBurger = Checkbutton(Food_F,text="Rice Plate ",variable=var12, >1, offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_HamBurger).grid(row=3,sticky
=W)
Sandwich = Checkbutton(Food_F,text="Sandwich ",variable=var13, >offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_Sandwich).grid(row=4,sticky=
W)
Fires = Checkbutton(Food_F,text="Fires ",variable=var14, >offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_Fires).grid(row=5,sticky=W)
Spagetti = Checkbutton(Food_F,text="Spagetti ",variable=var15, >offvalue=0,
font=('arial',16,'bold'),bg='orange',command=chk_Spagetti).grid(row=6,sticky=W)
Fazitas = Checkbutton(Food_F,text="Fazitas ",variable=var16, >offvalue=0,

font=('arial',16,'bold'),bg='orange',command=chk_Fazitas).grid(row=7,sticky=W)
################################################Entry Box For
Cake##########################################################
txtHotDog=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state
=DISABLED,
textvariable=E_HotDog)
txtHotDog.grid(row=0,column=1)

txtVegBurger=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,s
tate=DISABLED,
textvariable=E_VegBurger)
txtVegBurger.grid(row=1,column=1)

txtPasta=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=
DISABLED,
textvariable=E_Pasta)
txtPasta.grid(row=2,column=1)

txtHamBurger=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,
state=DISABLED,
textvariable=E_HamBurger)
txtHamBurger.grid(row=3,column=1)

txtSandwich=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,sta
te=DISABLED,
textvariable=E_Sandwich)
txtSandwich.grid(row=4,column=1)
txtFires=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state=
DISABLED,
textvariable=E_Fires)
txtFires.grid(row=5,column=1)

txtSpagetti=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,stat
e=DISABLED,
textvariable=E_Spagetti)
txtSpagetti.grid(row=6,column=1)

txtFazitas=Entry(Food_F,font=('arial',16,'bold'),bd=8,width=6,justify=LEFT,state
=DISABLED,
textvariable=E_Fazitas)
txtFazitas.grid(row=7,column=1)
###########################################ToTal
Cost##############################################################
##################
lblCostofDrinks=Label(Cost_F,font=('arial',14,'bold'),text='Cost of
Drinks\t',bg='orange',
fg='black',justify=CENTER)
lblCostofDrinks.grid(row=0,column=0,sticky=W)
txtCostofDrinks=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=CostofDrinks)
txtCostofDrinks.grid(row=0,column=1)

lblCostofFood=Label(Cost_F,font=('arial',14,'bold'),text='Cost of Foods
',bg='orange',
fg='black',justify=CENTER)
lblCostofFood.grid(row=1,column=0,sticky=W)
txtCostofFood=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=CostofFood)
txtCostofFood.grid(row=1,column=1)
lblServiceCharge=Label(Cost_F,font=('arial',14,'bold'),text='Service
Charge',bg='orange',
fg='black',justify=CENTER)
lblServiceCharge.grid(row=2,column=0,sticky=W)
txtServiceCharge=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=ServiceCharge)
txtServiceCharge.grid(row=2,column=1)
###########################################################Payment
information###################################################

lblPaidTax=Label(Cost_F,font=('arial',14,'bold'),text='\tPaid
Tax',bg='orange',bd=7,
fg='black',justify=CENTER)
lblPaidTax.grid(row=0,column=2,sticky=W)
txtPaidTax=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=PaidTax)
txtPaidTax.grid(row=0,column=3)

lblSubTotal=Label(Cost_F,font=('arial',14,'bold'),text='\tSub
Total',bg='orange',bd=7,
fg='black',justify=CENTER)
lblSubTotal.grid(row=1,column=2,sticky=W)
txtSubTotal=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=SubTotal)
txtSubTotal.grid(row=1,column=3)

lblTotalCost=Label(Cost_F,font=('arial',14,'bold'),text='\tTotal',bg='orange',bd=7,
fg='black',justify=CENTER)
lblTotalCost.grid(row=2,column=2,sticky=W)
txtTotalCost=Entry(Cost_F,bg='white',bd=7,font=('arial',14,'bold'),
insertwidth=2,justify=RIGHT,textvariable=TotalCost)
txtTotalCost.grid(row=2,column=3)
#############################################RECEIPT#############
##################################################################
txtReceipt=Text(Receipt_F,width=46,height=12,bg='white',bd=4,font=('arial',12,'b
old'))
txtReceipt.grid(row=0,column=0)

###########################################BUTTONS##############
##################################################################
btnTotal=Button(Buttons_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold
'),width=4,text='Total',
bg='orange',command=CostofItem).grid(row=0,column=0)
btnReceipt=Button(Buttons_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'b
old'),width=4,text='Receipt',
bg='orange',command=Receipt).grid(row=0,column=1)
btnReset=Button(Buttons_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bol
d'),width=4,text='Reset',
bg='orange',command=Reset).grid(row=0,column=2)
btnExit=Button(Buttons_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold')
,width=4,text='Exit',
bg='orange',command=iExit).grid(row=0,column=3)

###################################Calculator
Display############################################################
####################

def btnClick(numbers):
global operator
operator = operator + str(numbers)
text_Input.set(operator)

def btnClear():
global operator
operator = ""
text_Input.set("")

def btnEquals():
global operator
sumup = str(eval(operator))
text_Input.set(sumup)
operator = ""

#############################################Calculator############
##################################################################
#
txtDisplay=Entry(Cal_F,width=45,bg='white',bd=4,font=('arial',12,'bold'),justify=
RIGHT,textvariable=text_Input)
txtDisplay.grid(row=0,column=0,columnspan=4,pady=1)
txtDisplay.insert(0,"0")

###########################################CALCULATOR
BUTTONS#########################################################
#######################
btn7=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='7',
bg='orange',command=lambda:btnClick(7)).grid(row=2,column=0)
btn8=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='8',
bg='orange',command=lambda:btnClick(8)).grid(row=2,column=1)
btn9=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='9',
bg='orange',command=lambda:btnClick(9)).grid(row=2,column=2)
btnAdd=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),wi
dth=4,text='+',

bg='orange',command=lambda:btnClick('+')).grid(row=2,column=3)
###########################################CALCULATOR
BUTTONS#########################################################
#######################
btn4=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='4',
bg='orange',command=lambda:btnClick(4)).grid(row=3,column=0)
btn5=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='5',
bg='orange',command=lambda:btnClick(5)).grid(row=3,column=1)
btn6=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='6',
bg='orange',command=lambda:btnClick(6)).grid(row=3,column=2)
btnSub=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),wid
th=4,text='-',

bg='orange',command=lambda:btnClick('-')).grid(row=3,column=3)
###########################################CALCULATOR
BUTTONS#########################################################
#######################
btn1=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='1',
bg='orange',command=lambda:btnClick(1)).grid(row=4,column=0)
btn2=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='2',
bg='orange',command=lambda:btnClick(2)).grid(row=4,column=1)
btn3=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='3',
bg='orange',command=lambda:btnClick(3)).grid(row=4,column=2)
btnMulti=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),w
idth=4,text='*',

bg='orange',command=lambda:btnClick('*')).grid(row=4,column=3)
###########################################CALCULATOR
BUTTONS#########################################################
#######################
btn0=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),width
=4,text='0',
bg='orange',command=lambda:btnClick(0)).grid(row=5,column=0)
btnClear=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),wi
dth=4,text='C',
bg='orange',command=btnClear).grid(row=5,column=1)
btnEqual=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),w
idth=4,text='=',
bg='orange',command=btnEquals).grid(row=5,column=2)
btnDiv=Button(Cal_F,padx=16,pady=1,bd=7,fg='black',font=('arial',16,'bold'),wid
th=4,text='/',

bg='orange',command=lambda:btnClick('/')).grid(row=5,column=3)

root.mainloop()
CHAPTER 4

ANALYSIS

System Design:-

Screen shot 4.1


CHAPTER 5

CONCLUSION & FUTURE DEVELOPMENT

CONCLUSION

In this case the computer system will deal with billing and keep a record of
which stock has come out of the business, but the ordering itself will be done
by manual means. This is a highly accurate type of system and is the one that
will save the most time and money over the long term. The system will handle
electronic payments, and can also be integrated with a customer loyalty
scheme to keep customers details, which can be essential for a busy
restaurant.

FUTURE DEVELOPMENT

The record keeping and reporting is the key of successful transactions which
definitely consists of user friendly interface with easy and common
application. The objective to develop the application is based on the easy way
of getting yellow page information. The application can be used easily for
record keeping and reporting. The application can be installed on desktop or
operated via client/server architecture. 

The system is easy to use with simple knowledge of computer. The applied
principles in this system are instinctive and depend on running application at
user interface.
BIBLIOGRAPHY

1. Guido van Rossum , Python Docs, ”https://www.python.org/doc/”.


2. OpenCV, “https://docs.opencv.org”.
3. Numpy, “https://numpy.org”
4. The Hitchhiker's Guide to Python,"https://docs.python-guide.org".

You might also like