0% found this document useful (0 votes)
2 views

Project_Food Ordering System

The document is a project report on a food ordering system created by Daksh Ghai as part of a Computer Science class at DLDAV Model School. It outlines the functionality of the program, which allows users to order food from various restaurants and provides admin controls for managing menu items. The report also includes a theoretical background on Python programming and file handling, along with source code snippets for the project.

Uploaded by

seemabhatia392
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Project_Food Ordering System

The document is a project report on a food ordering system created by Daksh Ghai as part of a Computer Science class at DLDAV Model School. It outlines the functionality of the program, which allows users to order food from various restaurants and provides admin controls for managing menu items. The report also includes a theoretical background on Python programming and file handling, along with source code snippets for the project.

Uploaded by

seemabhatia392
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 46

DLDAV MODEL SCHOOL SHAMMAR BAGH

E9TD 1886

A PROJECT REPORT ON
FOOD ORDERING SYSTEM

SUBMITTED BY-
SUBMITTED TO-
NAME- Daksh ghai
MS. SEFMA BHATIA
CLASS- XII-A
PGT(CO MP SCI)
ROLLNO- G
SUBJECT COMPUTER
SCIENCE f083}
that
xll (P lyl) of otsAV hzssghas done
hb on Oon OnoE ONO sygz¥M under my
superdslon.
He has taken interest and has shown at most
dncerity
In completion cfthis prcjecc
I thb Project up to my e•oeaation & as per
guidelines issuad by CBSE, NEW DEt 'II.
ACKNOWLEDG ENT
It is with pleasure Ihat l acknowledge my sincere gratitude
to our teacher, MS. SEEMA BHATIA who taught and undertook
the responsibility of teaching the subject computer science. I
have been greatly benefited from his/her classes.
My sincere thanks goes to our Principal MS. REENA RAJPAL
who has always been a source of encouragement and
support and without whose inspiration, this project would
not have been a successful.
Finally, I would like to express my sincere appreciation for
all the other students for my batch their friendship & the
fine times that we all shared together.
Last but not least, I would like to thank all those who had
helped directly or indirectly towards the completion of this
project.

DAKSH GHAI
XII- PCM
INTRODUCTION

This programme first asks the user that this is a first time he using the programme

on his/her system. If the entered option is correct the programme automatically run

the commands which is necessary to run this programme perfectly. This programme

helps the user to order food from various restaurant. After entering details, this

programme automatically shows the names of Restaurant. The user can choose the

restaurant name to view its Menu card and order food that he likes. This programme

also allows the user to enter the feedback. This programme admin controls has

various kinds of options like create a new menu card, update a menu card, delete a

menu card, see customer details and see the feedback of the customer. However,

this admin function can only be accessible only if the entered admin-id and

password is correct.

[6]
THEORETICAL BACKGROUND

What is Python?

Python is an open source, Object-Oriented-High-Level programming language

developed by Guido Van Rossum in 1991 at the National Research Institute for

Mathematics, Netherlands.

Features of Python:

• It is an interactive, interpreted language.

• It is a loosely typed object —oriented language.

• It is a free open —source and portable language,

• It takes less time to develop programs.

• It is extensible / extendable and highly efficient.

• It supports GUI.

• It can be easily compatible with other languages like C, C-r+ etc.

• It is used for both scientific and non-scientific programming.


lnstallinq Python:
It can be installed by using website:
wnload

Interacting with Python:

• Using C‹›iiirnand 1 inch wintl‹›w

[10]
What is File Handling ?

A file in itself is a bunch of bytes stored on some storage devices like hard-disk,
thumb-drive etc. The data files can be stored in two ways: i. Text files ii. Binary files
A text file stores information in ASCII or Unicode characters, where each line of text
is terminated, (delimited) with a special character known as EOL (End of Line)
character. In text files some internal translations take place when this EOL character
is read or written. A binary file is just a file that contains information in the same
format in which the information is held in memory, i.e., the file content that is
returned to you is raw (with no translation or no specific encoding). The open()
pI
function is used to open a data file in a program through a file-object (or a file-
handle). A file-mode governs the type of operations (e.g., read/ write/ append)
possible in the opened file i.e., it refers to how the file will be used once it’s opened.
A text file can be opened in these file modes: 'r', ’w’, 'a’, 'r+', ’w+', ’a+' A binary file
can be opened in these file modes: 'rb', 'wb', 'ab', 'r+b’('rb+’), ’w+b'(’wb+’);
a+b’(’ab+’). The three file reading functions of Python are: read(), readline(),
readlines() While read() reads some bytes from the file and returns it as a string,
readline() reads a line at a time and readlines() reads all the lines from the file and
returns it in the form of a list. The two writing functions for Python data files are
write() and writelines(). While write() writes a string in file, writelines() writes a list In
a file. The input and output devices are implemented as files, also called standard
streams. There are three standard streams: stdin (standard input), stdout (standard
output) and stderr (standard error) The absolute paths are from the topmost level of
the directory structure. The relative paths are relative to current working directory
denoted as a dot(.) while its parent directory is denoted with two dotst..). The full
name of a file or a directory is called pathname. Steps to Process a file: there are
five steps to use files in the python program.

Determine the type of file usage Under this step, you need to determine
whether you need to open the file for reading purpose (input type of usage)
or writing purpose (output type of usage).

Open the file and assign its reference to a flle-object or file-handle Next, you
need to open the file using open() and assign it to a file-handle on which all
the file-operations will be performed. Just remember to open the file in the
file-mode that you decided in step 1.

iii. Now process as required as per the situation, you need to write instructions
to process the file as desired. For example, you might need to open the file
[12j
and then read it one line at a time while maKing some computation, and so
on.

iv. Close the file This is very important step especially if you have opened the
file in write mode. This is because, sometimes the last lap of data remains in
buffer and is not pushed on to disk until a close() operation is performed.

6.2.1 What is Text File Handling?

A text file stores information in the form of a stream of ASCII or unicode


characters (the one which is default for your programming platform). In text files,
each line in text is terminated, (delimited) with a special character (as per the
Operating System) known as EOL (End of Line) character. In text files, some
internal transformation take place when this EOL character is read or written. In
Python, by default, this EOL character is newline character (“\n”) or carriage-return,
newline combination (“tr\n"):

(i) Regular Text Files: These are the text files which stores the text in the
same form as typed. Here the newline character ends a line and the text
translation takes place. These files have a file extension as .txt.
(ii) Delimited Text Files: In these text files, a specific character is stores to
separate the values, i.e., after each value, e.g., a tab or a comma after
every value.

• When a tab character is used to separate the values stored, these are
called TSV files (Tab Separated Values files). These files can take the
extension as .txt or .csv.
• When a comma is used to separate the values stored, these are called
CSV files (Comma Separated Values files). These files take the
extension as .csv.
[13]
SOURC E CO D E

reset (Module)

c=[['ALAK"],[["Indian veg"],[’Mix veg ","130"],["Dal makhni ","90"],


[" Dal butter fry ","75'],["Paneer butter masala ","75"],["kadai paneer ”,"150 '],
["Chana masala ”,”105"],["Kashmiri aludam "."115”],['Nabaratana korma ","175"],
[”Sahi paneer ","180"]],
[['Indian rice"],[' Steam rice ","70"],['Jeera rice ","85"],[”Veg pulao ","J 35"],
*Angd
["Kashmiri pulao ' "|,[”Paneer pulao ',"160"]],
[["Chinese veg"],["Paneer tikka(6pcs) ","160"],["Chilli potato ”,"100"],
["Chilly chowmein ","120’],[‘Momos ","65"],["Honey chilly potato ","110"]],
[['Roti"],["Tandoori roti ","15"],[' Butter tandoori reti ",“20"],["Plain roti ","35"],
["Butter naan ","40"],["Masala kulcha ","50"]],
[["Non veg'§,["Chicken_kasa ","150"],["Handi_mutton ","190 "l.f"Chicken bharta
","160”],
["Chicken patiala ","270"],["Mutton biryani “,"J 80"],["Chivken biryani ”,"1 BO"]]]
def write1 0 a=open{c[0]
[0]+".txt",”w") for i in c:
if Ien(i)= =1:
for j in i:
a.writes)
a.write('in")
else:
for k in i:
for m in k:
a.write(m)

[21]
a.write(“\n”)
a.cIose0

res 2 (module)

x=[["KADIARSH FAST FOO D PARADISE"],[["BURG ERS ”],


["Tikki burger ","75"],["Egg burger ’,'55"],["cheese burger ","150’],
["Cruncy cheese burger ","110"],["Paneer spicy burger ”,"140"],["Ham burger
, 2so’j,
["Tandoori chicken burger ","J 00"),["chicken burger ","120”],
["Ham and chicken burger ",”350"],
["Spicy grilled chicken burger ","160"],["Kadirsh special burger ","170"]],
[["WRAPS "],[”Tikki wrap ","65’],["Crunchy wrap ”,”90“],["Sezhwan_wap “,"100"],
[”Cheese wrap ","75"],["Corn wrap ","80 ”l.I "Chicken wrap
",’90"],[”Tandoori chicken wrap ',”120'],
["Grilled chicken wrap ","140"],['Kadiarsh chicken wrap ","170"]],[[”PIZZAS "],
["Margherita ", "199 "],["Cheese _&s corn ",’265"],["Farm house ","215"],
["Mexican green wave ","400”],["Peppy paneer ","395"],
["Paneer makhani ","350”],["Chicken pizza ","550"]|,[["DRINKS "],
["Mineral water ","20"],["Cola ","40“],['Cold coffee ","70"],{"Lemon soda
","30"],[’Lassi ","50"],
["Mango shake ","70"],["Strawberry_shake ","70"],["Choclate shake ",”100“],
(’Kadiarsh milkshake ","120"]]]
def write20
a—open(x[0][0]+".txt","w”)
for i in x:
if len(i) ==1 :
for g in i:
a.write(g)
a.write('V")
[22]
else.
for k in i:
for m in k:
a.write(m}

a.write("\n")
a,cIose()

res 3(moduIe)

c=[["3yo restaurant™],[["Soup"],["Veg sweet com soup ","80"],["Veg hot N soup


","85"],
[' Chicken sweet com soup ",' 100"],["Chicken clear_soup ","90"],
["Chicken_hot_N sour_soup ",”120"],[’Chicken_M noodles ","120"]],
[['Veg states "],|"Crispy chiily babycorn ","145"],['Crispy mushroom paper salt
","170•],
["Veg fried ball ","100”],["Fried panner ' ,”155"]],
(( 'Rice_and noodles "J,["Veg fried_rice ","120"J,["Mixed_fried rice ","190"J,
[' Egg fried rice ","120“],["Chicken fried rice ","150"],[' Veg chowmein ",”70"],
t’Mixed_chowmein ","16O 'j,[ 'Egg chowmein ", '80”],[”Chicken chowmein ","11 S”],
["Prawn chowmein ","140"]],

["Veg manchurian ","115"],["Garlic chicken ","170"],['Hot garlic_chicken ","175”],


['Szechwan chicken ",”185"],["Honkong chicken ",’185"]l]
def write3():
a=open(c[0][0]+".txt™,"w")
VOF Ï ÏFI C:

if len(i) = '1:
forj in i:

[23}
a.writes)
a.write("\n”)
else:
for k in i:
for m in k:
a.write(m)
a.write(’V")
a.close()

res 4(module)

x=((' KADIAR SHYS OUTH INDIAN F 0 O D"],[["B REAKFAST ”],["Medhu vada


","20"],["Idly ","1S"].
["Curd vada ",'30"],["Sambar vada ”,'20"],['Rava kesari ”,"40"],("Ghee pongal
","45"],
["Chow chow bath ”,"45"],["Poori masala ’,”40"]],([”DOSA VARITIES "],
["Uthhappam ",”J 20”],["Plain dosa ","80"],[”onion dosa ","90"],["paper dosa
","95”j,
["Masala dosa ' ,"110 "],[ "Neer dosa ”,"100"],["Rava masala dosa
","110"],["Set dosa ","85"],
[ 'Paper masala dosa ","120"),[”Onion uthappam ",“115”],['Tomato uthappa
","120"],
[ Special kadiarsh dosa ","180"]],[["LUNCH DINNER "],["Chapathi kurma
","40"],
['Parota kurma ","45”],["Curd rice ","45"],["Sambar rice ","45"],["Variety_rice
","45"],
["Veg biriyani ",“TO"],["Mini meals ","65"],["South indian thali meal ","120"]],
[[' EVENING ESPECIAL "],["Rava idly ","30"],[ 'Akki roli ",”25"],[' R agi roti ","30”j,
("samar idly ", '30”],[”Adai avial ","35"]|,[["HDT D RINKS "],("Coffee ","20"],[”Tea
",”20"],
["Milk ","20"],["Horlicks ","30"],["Bournvña ",”30"],["Boost “,"30“],["Badam milk
","40"],
["special kadiarsh milk ","55"]]]
del write4(): a=open(x[0]
[0]+".tXt”,"w™) for i in x:
if len(i)-=1 :
for g in i:
a.write{g)
c.write("\n”)
else:
for k in i:
for m in k:
a.write(m)
a.write("\n")
a.cIose()

res read(module)

def read(res):
a=open(res+".txt”,"r")
z=a.readlines()

for i in z:
s=i.spIit0
if len(s)-=1:
125)
forj in s:
print("\n")
print("
print(" "*(30-int(round(lens))/2)),j}
print("” **”***’**””*2)
print("\n ’)

else:
b=len(s[0])
print(s[0]," ”*(60-b),s[\])
print("\n")
a.close()

create_res(module)

def res(res name):


X*[[£e.S name]]
y=True
while y==True:
a=str(input(”Enter the type of food ( use underscore instead of spaces ): "))
n=int(input("Enter the number of food items of this type "))
z=|[a]j
for i in range(0,n):
d=str(input("Enter the food item ( use underscore instead of spaces ): "))
t=str(input("Enter the price of the item type "))
z+=[[d+” ”,t]]

ch=str(input("Wantlo enter more type of food (y/n): "))


t26)
if ch in (”n","N™,"No",”NO","no"):
y-False
if ch not in ("n","N","No","NO","y",”Y”,"Yes","YES","yes"):
print(".............your input is wrong so the program assumed no...........”)
y=False
a=open(x[0][0]+".txt”,’w’)
for i in x:
if len(i)==1 :
for j in i:
a.writes) a.write("\
n")
else:
for k in i:
for m in k:
a.write(m)
a.write("\n")
a.close()

res_search(module)

def search(x,y):
f=open(x+".M",' r")
h—f.readlines()
d=1234
for i in h:
m--i. split0
if len(m)»1:
if m[0]==y:

[27j
d=12345
return [m[0],int(m[J])]
if d==1234:
s=[y+” not found’,0]
return s
f.close()

{28)
MAIN CO DE

impor|os

import res 1
import reset
import res 3
import res 4
import create res
import res read
import res search

print("\n")
print("NOTE 1: please enter the information as instructed .")
print("Note 2: please write underscore(' ’) instead of spaces.") print("\
n")

check=str(input{"Are you running this program for the first time in your system (y/n)

if check in ("y™,"Y","Yes","Y ES","yes"):


res 1.writel O
res 2.write2()
res 3.write3$
res 4.write4O
cus=open(' Customer.txt",”w")
cus.writeIines([“ NAME "," AGE "," GEND ER "," PH0 NE "," ADD RESS ",in"])

[29]
cus.writeIines([” Ankit "," 24 "," male "," 9742472940 "," c-
90,ADARSH R0AD,NEAR METRO STATIO N,DELHI-110032 ",”\n"])
cus.close()
f201 -open("res names.txt","w")

f201.writeIines(["RESTAURANT NAME\n","KADIARSH FAST FO OD PARADIS E\


n","KADIARSH SOUTH INDIAN FOO D\n“,"ALAK\n","3yo restaurant\n"])
f202=open("customer feedback.txt","w")
f202.writelines([”CUSTOMER NAME ",”FE EDBACK\n"])
f202,writelines(["Ankit *."it is a very good thing that we can choose our own
restaurant.\n"])
prinl("...............Necessary files crealed................")
cus.closed
f201.close
f202.closed

if check in ("n","N™,"No',"no',"NO","y™,”Y™,"Yes”,"YES”,"yes"):
food —True
while food==True:
print("\n")
print('in")
print(””*”*S8)
print("\n")
print(" "*50+"Food Ordering System™)
print("\n")
print("”“"*58)
print("””"*58)
print('in")
print(”1. login as Admin ")
print("2. login as customer ")

{30]
print("3. exit")
print(in")
x=int(input("enter your choice (1,2,3):"))
print(in“)
print("You choose option ",x)
pat=0

food1=True
while food1 -True:
print("\n")
print(”\n")
print("”**”Enter Your Details**”*”)
print(’in")
admin=str(input("Enter Admin ID : ”))
password=str(input("Enter Password : "))
adm=open("Admin.txt","r")
z=adm.readlines
-B
for i in z:
q—i.spIit0
s+=[q]
pa=FaIse
for i in s:
if i[0]——admin and i[1]==password:
print(’in")
print(“.......Login Successfull..........")
print('V")
pa=True
ad=True
{31j
while ad——True:
print("\n’)
print(" LO G IN AS A ADMIN’”*””***”’”*”””")
print("1 : Create a New Menu ")
print("2 : Update a Menu Card")
print("3 : Delete a Menu Card")
print("4 : See Customer information")
print("5 : See Customer Feedback")
print("6 : Back To Main Menu")
print("7 : Exit ")
print("\n')
a=int(input("Errter the choice (1,2,3,4,5,6,7) :"))
print("\n')
if a==1:
name-str(input("Enter the name of restaurant : ”))
f65=open("res names.txt","a")
f65.write(name)
f65.write('\ri")
’f65.close()
create esres(name}
print("..........seccessfuIly created a new one............")

elif a- 2:
f20=open("res_names.txt","r™}
print(' Select From The Given List
") print(’M"}
tt=0

132)
stp=f20.readlines 0
for i in stp:

print(i)
n+=1
print("ïn")
seìect=str(input("Enter the name of restaurant : "))
select1 41 =select+"\n"
if seIect14J in stp:
res read.read(select)
f80=open{select+".txt”,”r”)
sty= f80.readlines0
print("\n ')
foo1 =str(input("enter the name of the food lhat you want to
updale : "))
a=False
for e in sty:
s99=e.splits
if s99(0]==foo1:
a-True
if a==F-alse:
print("............food item not found.............”)
f20.close0
f80.cIose0
else:
f15=open("new file.txt",”w")
foo2=str(input("enter new name : "))
pr4=str(input("enter new price : "))
for i in sty:

133]
s34=i.split()
if s34[0]!-foo1 :
f1 5.write(i)
if s34[0]==foo1 :
f1 5.writeIines([foo2*“ ",pr4+"\n"|)
print("..........MENU CARD UPDATED.............."}
f15.close0
f20.closed
f80.cIose0
os.remove(select+".txt")
os.rename("new file.txt",seIect+".txt")

else.
print(".......... restaurant cannot be found............")

exif a==3:
f45-open(”res names.1xt","r")
print(" Select Frorri The Given List
") print("\n")
cp-0
st= f45.readlines0
for i in st:
if cp 0.
print(i)
cp+=1
print("\n")
delete=str(input("Enter the name of restaurant : "))
delete1 =delete+'C"
if delete1 in st:

{34]
os.remove(delete+”.txt”)
f10=open("new file.txt”,"w™)
for i in st:
if i!=deIete:
f10.write(i)
f10.closed
f45.cIose0
os.remove("res names.txt")
os.rename("new file.txt",”res names.txt™)
print(".............menu card successfully seleted............")
else:
print(’..........File cannot be found.............")

elif a==4:
cust=open("Customer.txt”,”r")
r 3= cust.readlines0
for i in r3:
s3=i.spl
print(s3[0]," "*(30-Ien(s3[0])),s3[J]," "*(15-Ien(s3[1 ])),s3[2],"
"*(20-Ien(s3[2])),s3[3]," "*(20-len{s3[3])),s3[4]," "*(40-Ien(s3[4])))
elif a==5:
f202=open(”customer_feedback.txt","r")
rep=f202.readlines 0
for i in rep:
s40=i.split()
print(s40[0],“ "*(30-len(s40[0|)),s40[1])

[35]
elif a==6:
print(”You choose option ',a)
print("\n")
food1 =False
ad=False
exif a==7:
print("You choose option ",a)
print("\n")
print(”*"*49+"Thanks for coming"+"*"*49)
food=False
food1 =FaIse
ad= False
else:
print("Your input is wrong please enter a valid input")
print(’M”)
if pa==FaIse:
pat+-1
if pat=—3:
print(”.................NO TRIAL LEFT FO R Y0U. SO, THE PROG RAM
HAS BEEN TERMINATED.....................")
print("\n")
print("")
print('\n")
food-False
food1=FaIse
else:
print("............Please Enter a Valid ID And Password.....",(3-pat),"tries
left.. .“)
elif x==2:
food2=True
white food2= -True:
print(3n”)
print(”*************”’L0 GIN AS CUSTOMER”*”**"*”*”*””*")
print("\n")
print("””””Enter Your Details““““”)
print("\n”)
name=str(input("En1er Your Name "))
print("\n")
print("1 Want To Buy Meal”)
print(”2 : Want To Enter Feedback")
print("3 : Back To Main Menu’)
print("4 : EXit"}
print("\n“)
at=int(input("Enter the choice (1,2,3,4) :"))
print(”\n")
if at=—J !
age=str(input("Enter Your Age "))
gender=str(input("Enter Your Gender : "))
phone=str(input("Enter Your Mobile No. "))
address-str(input("Enter your Address : "))
cus=open("Customer.txt”,”a")
cus.writelines((’ ",name," ",age," ",gender," ",phone," ",address,"\n"])
cus.close0

f20=open(”res names.txt","r")

(37)
print(“\n")
print("””**”””*”**”*Select From The Given List“”***””*”*”*”*")
print("\n")
tt=0
stp=f20.readlines 0
for i in stp:
if tt»0:
print(i)
It+=1
print("\n")
seIect=str(input("Enter the name of restaurant :
")) data-§
seIect1=select+’in"
if seIect1 in stp:
res„read.read(select)
we=True
while we—=True:
see=str(input("Enter the product name : " ))
data+=(res search.search(sele4,se.e)]
wr=str(input("want to Enter more(y/n): "))
if wr in ("n","N","No","no","NO"):
we-False
if wr not in ("n’,’N","NO",' no”,"N 0 ","y","Y”," Yes“,"YES“,"yes"):
print(“...........NO VALID INPUT SO THE PROG RAM IS
ASSUMED NO...........")
we=FaIse

sum=0
print("\n")

38j
print("
print(" "*(24-int(round(Ien(select))/2)),seIect)
print("
print(" "*20, 'BILL™)

print("FO O D NAM E™," "”31,"PRIC E")

for i in data:
sum+= i[1]
print(i[0]," "“(40-Ien(i[0])),i[1])
print(" "“““*“”‘”*“’“”“”‘*")
print("TOTAL“," "“29,"(RS.)",sum}
print(" "”‘*“”””“””“*““””““*”‘”‘”*”“”“***”*W")

print("\n")
print(" l hanks for coming””*””””””’”*”*“””")
food2= False
food— False
else.
print(".........Please Enter The Valid Input..........")
if at==2:
f202=open("customer„feedback.txt","a”)
feed=str(input("Enter your feedback : "))
f202.writeIines([name+" ",feed+"\n"])
f202.close()

if at==3:

food2= False
if at-=4:

[3 1
print(' You choose option ",at)
print('\n")
print{"*"*49+"Thanks for coming"+"*"*49}
food= False
food2= False
if at»4:
print(’ Your input is wrong please enter a valid input")

elif x==3:
print(’V™)
print("*"*49+” Thanks for coming "+"*"*49)
food=False

else:
prinl('in™)
print("Your input is wrong please enter a valid input”)
print('V™)

if check not in ("n","N","No","no","NO","y","Y","Yes","YES","yes”):


prin1("..........s.....NO VALID INPUT THIS PRO G RAM HAS BEEN
TERMINATED................")

[40]
OUTPUT
ABMIN CONTROLS:

IF THE ADMIN ID AND PASSWORD IS INCORRECT 3 TIMES SIMULTANEOUSLY.


THEN,
OUTPUT:

[41)
IF THE ADMIN ID AND PASSWORD IS CORRECT.
THEN,
1. Creating a new menu.

OUTPUT:

En*er the o- cf reatowAnt : 5M¥AT WIR8


End.nw t.hn t. rC Crm/l nen iin:üevn -e nul.nsrI of min : cnie

gntux tin fos4i itrm ( use uoderscorr insCzad oD spaozs }:


biit€er_cake Enter tAo p*ice of the item typ= : SSC
botor tha bond itom ( uaa uodeizcore ins€ead o€ apacaa }: chiffcn_caAe
Rncer tho ptico of the ices cope : 4GD

rnter ’tHe type Cf’fcod { use uodexscerC inscead o£ spaces ): sweats

Rnker the fczcl item use mnderscz*e instaat ofi npccm•m § : quLab aWuR
Kn€er tAe pxlce ol tbe item €ypm ; IOD
Enter tke Cccd item ( use oodexscose Road ei spa•zos } : hey am ka kolwa

ro€er t6o fcwd ic‹n# ( use uoHe*eco*e ina*ead of wpaceo t: m:*°*


roter tbe pxloe o£ che item type ° tBD
Naot to enter mcro typo *af food (y/n} : n
..........smccass*olly craatad a nan nna............

(42]
2. Update a menu card.

OUTPUT:
enter t he cho1ce (1, 2, 3, I, 5, e, ') :2

-’-’-"”"”Zeleot Prom Th- Ziwen List”"'-’-’-”"

KADIARSH 8OUd IRDIAN FOOD

aya_:restaurant

Entcr thc ncsc cf icotourant : 6RF_R.4D WI8B

1'. L^
27C
IOL

C4ltWE t*W ? e ?/ W WW t aL #?G VN:%t u LV : IiW


ak en€er new nama : bur£i
enter nen price • 2f0

[43]
3. Delete a menu card

OUTPUT:

6 : 8ack Co Main #mnu

mttm* the uhoiut (1,1,3,4,0,6,7) :8

””-’*”””9elect From The Given Liz€”””’-’-”’-

4. See customer information

OUTPUT:

*..ii*.. **., g•-g x ¿, , ,i „,. „.


l : '.mm'.v m F.•B$.+
’ e a H#ns'?aid
Z : Jelo-m a fno'?
mJ
* : #.e L:sstomei infc.coaticn

21

[44]
5. See customer feedback

OUTPUT:

EDB*CT
:L_.r_a_‹t:y’_v:,z:_.hizIg_l.ma:._cn_:u._.:7:•«.n-_u..*z_:cz_IcrL«zz*nl..
these $v jetg a $Ns_b'Jt_nt.i I l_lociirj_.sme_t!n- s_ ul5_E•_hetter_i f_ -hete_a-e_ * *-e_ restaurs *t s.
Ryan
, .-'„.. -
it's itbe:io._.tt_i-sn_#o*:ây_foz_a raizc.

|45]
CUSTOMER CONTRO LS:

. Buy meal

OUTPUT:

{461
Rnter the r.aae cf restaurant : KAOI.LW9N FIST FOOD PAHADI9E

chease burrez

Kam_i +r]mr
?ando:ri chicken burger
ch:ckcn_burg:::r
emu_and_ohic!cen_b rgcr
spicv_crillzd_ohickvn burger
Pmirsh_special_bu:ger

Chi:ker_wxap
Dand'acri_chicken_vrap
14L+
l*L'

{47)
2 Gú
215
Mcxicnn_grccn_mav: 'TOO

,*„*„.*,.,*„*„,*„„** „*.* *.* › .i*i . i*m x.***+


+**ii*iii

Mineral water

Rutur the p*o:auct *m *nu : B _,i:/ul_clrİckcn_Lri*gc*


wænt to En£ar æorO(y/n} : n

[48a
2. Enter feedback

OUTPUT:

****Enter Your Details****

Rntor Your Nama : Olivia

i • Hant To Buy Bcal


2 : Want To Enter Teedback
3 . Back To Hain Menu

Knter your feedback : it’s go:d.

(49]
SCREENSHOTS OF TEXT FILES

TEXT FILE 1

BURGE RS
Tikki bunged ys
Egg burger 55
c heese drirger t50

Paneer spicy burger 1dB

la udoor i c hi t keo burger ice


chicken br ngen 128
Hao_and_c hi c ken_hunger use
Spic y grilled chicken burger ;60
Kadirsh speci aL burger y70

Tikki ur‘ap 6s
Crunc fjy_ur•ap 9a
sezh'nan_wap see
Chee fi e wr ap 7s
Corn_arap oo
chicken wrap 98
fandoor i_chicken_ur ap tye
Sri11 ed chicken wrap z4e
kadiansh c hicken snap t7e
PIzzAs
argheritz 199
Cheese 8_corn 26d
"am house 2zs
#xisan green wave 400
*eppy paneer 39•T
*aneer makhani 350
-h i ck en p? z za 558
7RZt'IKS
Mineral water 20
.ot a 4e

.enon_soda 30

cngo shake ye

:hocI ate shake z00


'adiar sh_m1 Lkshake 1y8

[SO]
TEXT FILE 2

ITI• Edit F oirna- ’die.v Het p


šADŁ ARSH_SŒJTH I ŃDŁAŃ ŁODD
3REAKFA$T
•Iedhu_vada 2e
idly ys
Curd_vada TO
sanbar_vada 2e
Rava kesari 4e
Ghee_ponga1 45
chs chøø bath 45
Poori masaLa 4s
EOSA VAftlT1CS
Uthhappaø z20
PLain_dosa 8Ø
onion êosa 9e
papen dosa g5
NasaI a_dosa *te
Neer dosa yes
Rava øasaIa dosa I1B

Paper masaȚa dosa t2e


onion_uthappaø tts
Toeato uthappa t2e
Spec ia 1_kad1arsh dosa t8e
LUNCH_DINNER
Cfiapathi kurna we
Parota kupøa as
Curd rice 45
Saøbar nżce 45
Var żety_rice Ä5
veg birżyanż se
+t1ni_nea1 s cs
SotJth indian thaLż øeaL the
EVENI NG SPECIfiL
naya_k d1y 30
Akki rotż zs
rtagi rot i 3e
sanar iaty ae
Adaż avżal 35
HOT DRENKS
col-See 20

Łtilk 20
HorL i cks ze
Bournv ita

3e

eadan_ø i I k ee
spec:tab kadiarsh milk S5

{51]
TEXT FILE 3

• I-dit I orrna• View Help


o restaurant

' sueet_corn_soup @

\icken_swt_corn_*oup yes
\Tcken clear soup TO
aTcken hot N sour soup t2e
hicken_wt_nood}es t2e
eg states
rTspy chiily babycorn 't4S
rispy uushrooa_gaper_saLt tye
'elfreed ball ABB
rTed_panner *5s
ice and noodles
fe@Tried_rice I.28
6 xed_f rd ed_rI ce 198
£ I-ried rice tze
Chicken_trted_rLce \5e
veg choaziein GB
NTxed_ch in 16B
£gg_c ein 08
chicken ch *metn was
Prawn chain y4g
chinese
ye baby corn S55
Chy}T i_aushno ¥ ABB
Childi paneer t56
veg nanchurTan Us
sarlTc chicken y7a
Hot_garT?c ch:tcken :t75

TEXT FILE 4

jI\ITED PUSSY
tyson y23'4?G3898

lszl
TEXT FILE 5

ile Edit forma. VTew Help

:ndźan veg
ix veg 136
/at_nakhnż 9e
ul butter fry 75
•aneer butter_ziasat a 75
nadal paneer 158
"łjana_•asa}a $65
tashatrż_a1udan MS
yabaratana korria t75
sahi_paneer 1ae
tnąian rice
steaa_rżce że
3eera_rice 8s
veg_puIao ż35
¥ashnżrż_pu1ao 185'
Paneer_puLao 16
Chżnese veg
Paneen tżkka(6pcs) 168

ds 6S
Hgriey chżLly tato tź0

yand0or ż_rot ź $5
eutter tand@ry roti DO

Butter naan m
asala kmcha ss
tto0 veg
Chic ken kasa t50

<fii<ken bharta 165


CŁicten patiala 27#

Chżvken bżr-yanż 186


TEXT FILE 6

File Edit Format ’view Heilz


nA•fE AGE GENDER PHONE ADDRESS
Ankit 24 nale 9y4247ysae c-se, xs fiGAD, NLAR I•\L IRO 5 IAW L0f4,IJLLH1- 1zu6J2
V? nayn yq £r'na1e f\77f f€1 717? 1' ANDHFRT_EI III A_RflAD SAF FD_PfZII ANfTHFRT,f4I B°IRA7 -dABfi77
Ayan 1s c›ale 9s4324Z Z21 5-98 f¥¥tEL TLIt4N,DELHI - 11 0B01
Harsh1ta 21 female 7sz3o1322Z B-2bB FEELKHANa,HYDnxeso-seeaaz
Vedas 18 feeale 7981230960 157,GURU_NAkAK_PURA,CIVIL_LINES LUOfJIANA, PUN3Ae-ia1eel
o11v1a 24 female 9876543218 4S,NARX STRREET,NEN_Y£¥tK

TEXT FILE 7

CuST ¥t£R_NA/1G FE£0BACK


Ark1t 1t_Js_o_very„good_th1ng„tkct_wc_can„choose_our_o n_rcstaurant.
v1naya there_t r„var \ ety_nf_fneds_hut„s†1 l \ _1 ar.k\ ng_snan_th1*_«n‹ d_t›e_hnUer_t F_there_ar'e_eorn_restaurantt .
Ryan 1t' * nnd_h‹ t_nnt_bn*t.
wrsh1ta It' s_f1ne.
vedas it's pathetic. Not even worthy for a praise.

TEXT FILE 8

File Edit Iowa. View He!p


RESTAURANT IU\f4E
KADIARSH_FAST_FOOD_PARADISE
KADIAItST l_S0tJT\ I_INDIAN_FDO0
ALAK
3yo_restaurant

[54]
HARDWARE AND SOFTWARE REQUIREMENTS

. Pyhon I DLE.
. Modern Operating System:
. Windows 7 or 10
. Mac OS X 10.11 or higher, 64-bit
. Linux: RHEL 6/7, 64-bit (aImos1 all libraries also
work in Ubuntu)
. x86 64-bit CPU (Intel / AMD architecture)
. 4 G B RAM
. 5 G B free disk space

[55]
BIBLIOGRAPHY
1. Made by DAKSH OHAI, SHREYAAN OUPTA, MUDfT RAJP of
CLASS 12-A as a project for COMPUTER KIENCE of SESSION
2023-24.
2. Taking the help of internet for searching menu cards.
3. Use PYTHON-IDLE for developing the food ordering system.
4. Use various In-built function:
• Creating modules and Importing them to main file.
• While loop and for
• Conditional statements (if, elif, else).
• Logical operators, arithmetlc operators and so on.
• Use of data types like Integer, strlngs, Ilst, tuples, etc.
• Use of basic text file handling

You might also like