Pizza Ordering Python Project New
Pizza Ordering Python Project New
FINAL REPORT
Degree of
BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE AND ENGINEERING
By
Page | 1
ACKNOWLEDGMENT
We would like to thank Dipen Saini sir for assigning us with this project. Through the
project we are able to grasp more technical and have a hands-on practical experience
with python projects. Through it we are able to learn how a project is created and how
necessary and crucial technical knowledge is. We are really grateful to the faculty that
has provided us with the necessary guidelines.
Page |
2
DECLARATION STATEMENT
This is to declare that this report has been written by us. No part of the report is copied
from the other sources. All information included from other sources has been duly
acknowledged. We aver that if any part of the report is found to be copied, we will take
full responsibility for it.
Reg.No. : 12113344
Page | 3
TABLE OF CONTENTS
Page |
4
LIST OF TABLES
Table No. Name Page No.
Page | 5
LIST OF FIGURES
Page |
6
CHAPTER 1
INTRODUCTION
1.1. Introduction
Based on Image Recognition, a game is designed in which the customers will sees the
various images for some particular time duration and after that they have to recognize
them by the names of images.
Page | 7
1.2. Uses
By developing this ordering system , we will predict the number of pizzas` that are
correctly recognized by a user from total number of product
All the button used in this project perform some special kind of operations.
• Start the ordering
• Continue the cancellation
• Exit from the site
• Returning the total number of pizzas that are correctly recognize
• Printing the total number of pizzas that are correctly recognize Button
used in this project are like EXIT, LOGIN, OK, HOME etc.
CLICK HERE
This button is defined in the in the program named “about_us.py”. This button
starts our program.
On clicking on this button, we will go to the program name “klg.py” from
“about_us.py”.
LOGIN
Page |
8
Fig 1.3.2
Page | 9
Fig 1.3.3
CLEAR
Fig 1.3.4
Page |
10
Administrator login
Fig 1.3.5
There are two OK buttons is used in this project.
HOME
Fig 1.3.6
Page | 11
On clicking this button, a messagebox will appear where we can see the total number of
images correctly recognize.
Page | 12
ABOUT US
Fig 1.3.7
OK
Fig 1.3.8
No code is there to use this button.
This button is present on message box.
Fig
1.3.9
On clicking this button, we will get percentage of accuracy.
Page | 13
CHAPTER 2
METHODOLOGY
2.1. Requirements
First step is gathering our requirements of the project. The functions and the modules and
the necessary for the development of the project.
2.2. Functionality
In this step we will discuss the different function used in the program and how they are
working.
used is…
def home_page(): about_us_window.destroy() import os
os.system("python klg.py")
Working of this function is to destroy the current window and move to new program named
“klg.py”. PIZZA’S()
Page | 14
Working of this function is to destroy the current window and display a new window with
12 images and some text and some button. CANCEL()
This function is defined in the program named “klg.py”.
Working of this function is to destroy the current window and display a new window with
12 images and some text and some button. HOMEPAGE()
use is…
sf.c.create_text(590,270,text="Quantity : ",fill="#000000",font=("default",12))
sf.qty2=Entry(sf.vegf2,textvariable=sf.q2,bg="#aae2d7",font=("default",12)
,width=4,)
sf.qty2.place(x=650,y=260)
sf.add2=Button(sf.vegf2,text="ADD",command=lambda:addch2(),bg="#0b1335",cu
rsor="hand2",fg="white",bd=4,font=("default",12,'bold'))
sf.add2.place(x=850,y=240)
def addch2():
This function returns the number of images that are correctly selected. printing()
used is…
Page | 15
sf.logo=PhotoImage(file="logo.PNG")
sf.c.create_image(683,75,image=sf.logo)
sf.c.create_text(950,80,text="WELCOME",fill="white",font=("default",20))
sf.name=" Abhay kumar singh"
sf.c.create_text(950,120,text=sf.name,fill="white",font=("default",18))
sf.out=Button(sf.pizf1,text="Log
Out",command=lambda:sf.Login(),bg="#0b1335",cursor="hand2",fg="white",font=("defau
lt",16))
sf.out.place(x=1200,y=100)
sf.localtime=time.asctime(time.localtime(time.time()))
This function shows a messagebox with total number of images that are correctly recognize.
And it will also print the percentage of accuracy. home()
This function is defined in the program named “klg.py”.
Code we used is…
sf.c.create_rectangle(405, 170, 960, 290,width=2)
sf.vag=PhotoImage(file="extravaganza.png")
sf.c.create_image(470,230,image=sf.vag)
sf.c.create_text(650,200,text="Veg Vaganza",fill="#000000",font=("Cooper
Black",20))
sf.c.create_text(860,200,text="₹400/₹600/₹250",fill="#ff3838",font=("defa
ult",17,'bold'))
## ch2=sf.check(sf.vegf2,220)
This function destroys the current window and move to the new program named
“about_us.py”.
2.3. Implementation
This step is to implementing the project by coding. This is most important part of the
program. A particular care should be done in order to get error free program.
2.4. Debugging
This step is to check the project for any errors in the code. And linking of the module take
place after checking individual modules and functions.
2.5. Execution
This step is to executing the project and simple testing.
Page | 16
2.6. Working
We have used tkinter library to develop GUI for the project.
We import sys library to know the current version we are using.
We import messagebox from tkinter to show information.
We import os for linking a program with another program.
The detail description about the working of the project is discussing now. On running the
program name “about_us.py” we will see the interface like this
Fig 2.6.1
On clicking the start button, current window is destroyed and move to the program named
“klg.py”. The interface will look like this
Page | 17
Fig 2.6.2
These five images are the button. On clicking any of the one we will move to the next
window.
If we click on EXIT button, we will exit from the program and no further processing is
done.
We will discuss the things that happen on click BIRDS image i.e. Parrot. On clicking it we
will destroy the current window and next interface will look like this
Fig 2.6.3
If we click on EXIT button, we will exit from the program and no further processing is
done.
On click OK button current frame is destroy and we get a new interface like this
Page | 18
Fig 2.6.4
After selecting the images name, click on the SUBMIT button. The interface will look like
Fig 2.6.5
On clicking OK button, we will get the accuracy of the image i.e. number of images that
are correctly recognize and the interface will look like this
Page | 19
Fig 2.6.6
If we click on EXIT button, we will exit from the program and no further processing is
done.
If we click on the HOME button, current window will destroy and we move to the
program name “about_us.py”. The same thing will happen again. Flow Chart
Fig 2.6.7
Page | 20
CHAPTER 3
TECHNOLOGY
Page | 21
row, column, text, onvalue, offvalue, variable, expand, fill, file, image, command and so
on.
CHAPTER 4
WORK DIVISION
We divide the project into three modules. Each module is designed by one of us.
I.Modules Description
Customer Side:
• Order Pizza
• Receive Order
• Cancel Order
• Track Order
Merchant Side:
• New Pizza Order
• Cancelled Order
• Served Order
Both end interfaces are coupled with a single data store inside the program.
System will make sure that user type is selected inside the window to find
which side’s interface has to be displayed.
Page | 22
Interfaces will majorly be made up of Buttons, Text
Boxes, Labels and other widgets which are available in python’s tkinter
library.
Customer side will have the functionalities of creating an order request.
Request will then be displayed in both customer’s Track Order sub module
and merchant’s New Pizza Order sub module. Similarly, other modules will
be interconnected and data will be consistent on both sides.
2. Mandala Karthikeswar
• Coding Modules
• Integrating Modules
• Design Validation
3. Uday Kiran
• System Testing
• Code Debugging
Gantt Chart
Each module is/will complete with in the given date as mention below.
Page | 23
Work Division
We went through different website and learn those concept that will used in making this
Page | 24
• https://www.python.org
• https://www.w3schools.com
• https://www.google.com/
• We followed the text book named “Introduction to Programming Using python” by
Y. Daniel Liang.
Page | 25