-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresturentManagementSystem.sh
472 lines (390 loc) · 18.1 KB
/
resturentManagementSystem.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
echo "_____________________________Welcome TO FAST FOOD RESTAURANT ADMIN PANEL______________________________"
echo "______________________________________________________________________________________________________"
echo "______________________________________________MENU ITEM_______________________________________________"
echo "______________________________________________________________________________________________________"
echo "______________________________________________________________________________________________________"
echo " Item No_________FOOD Name_________________Size____________________________Price_____"
echo " 1 Chicken pot pie 6/8/10/12 inches 150/170/200/250 Tk"
echo " 2 Mashed potatoes 100/200/300/400 g 100/120/150/200 Tk"
echo " 3 Fried chicken 150/200/250 g 150/170/200 Tk"
echo " 4 Burgers chiken/egg/vagetables 150/50/40 Tk"
echo " 5 Chicken soup 150/250/300 g 70/120/150 tk"
echo " 6 coke 250/500/1/2 L 30/50/80/120 tk"
echo " 7 Coffe 200 mL 50/60 tk"
echo " 8 cake 1/2/2.5/3/4 pound 120/170/220/260/300 Tk"
echo " 9 French fries 150/200/250/300 g 50/70/100/130 tk"
echo " 10 Bread stiks 150/200/250/350 g 70/100/120/170 Tk"
echo "________________________________________________________________________________________________________"
echo "________________________________________________________________________________________________________"
read -p "Do you want to order(yes-1/no-2): " ord
while(($ord == 1))
do
#echo -e "\nDo you want to order ?\n"
read -p "Please Enter your name: " name
read -p "please choose the food item: " item
if (($item == 1))
then
echo -e "\nHere is our Chicken pot pie list"
echo "_____________________________________"
echo "ITEM_NO________SIZE________PRICE"
echo " 1 6 inches 150 tk "
echo " 2 8 inches 170 tk"
echo " 3 10 inches 200 tk"
echo " 4 12 inches 250 tk"
echo " "
read -p "which size of pot pie you want order: " potPoe_size
if(($potPoe_size ==1))
then
read -p "How many Pot Pie do you want: " poe_quntity
echo " "
price=`expr $poe_quntity \* 150`
elif ((potPoe_size == 2))
then
read -p "How many Pot Pie do you want: " poe_quntity
echo " "
price=`expr $poe_quntity \* 170`
elif ((potPoe_size == 3))
then
read -p "How many Pot Pie do you want: " poe_quntity
echo " "
price=`expr $poe_quntity \* 200`
elif ((potPoe_size == 4))
then
read -p "How many Pot Pie do you want: " poe_quntity
echo " "
price=`expr $poe_quntity \* 250`
else
echo "Wrong Input!!!!"
fi
elif (($item == 2))
then
echo " "
echo "Mished Potatoes List: "
echo "_____________________________________"
echo "ITEM_NO________SIZE________PRICE"
echo " 1 100 g 100 Tk "
echo " 2 200 g 120 Tk"
echo " 3 300 g 150 Tk"
echo " 4 400 g 200 Tk"
echo " "
read -p "which size of Mished Potatoes you want: " mished
echo " "
if(($mished ==1))
then
read -p "how many Mished Potatoes do you want: " mis_qunt
echo " "
price=`expr $mis_qunt \* 100`
elif (($mished == 2))
then
read -p "How many Mished Potatoes do you want: " mis_qunt
echo " "
price=`expr $mis_qunt \* 120`
elif (($mished == 3))
then
read -p "How many Mished Potatoes do you want: " mis_qunt
echo " "
price=`expr $mis_qunt \* 150`
elif (($mished == 4))
then
read -p "How many Mished Potatoes do you want: " mis_qunt
echo " "
price=`expr $mis_qunt \* 200`
else
echo "Wrong Input!!!!"
fi
elif (($item == 3))
then
echo " "
echo "Fried Chiken: "
echo "_____________________________________"
echo "ITEM_NO________SIZE________PRICE"
echo " 1 150 g 100 Tk "
echo " 2 200 g 120 Tk"
echo " 3 200 g 150 Tk"
echo " "
read -p "which item of Fried Chiken you want: " chiken
echo " "
if(($chiken ==1))
then
read -p "how many Fried Chiken do you want: " chik_qunt
echo " "
price=`expr $chik_qunt \* 100`
elif (($chiken == 2))
then
read -p "How many Mished Potatoes do you want: " chik_qunt
echo " "
price=`expr $chik_qunt \* 120`
elif (($chiken == 3))
then
read -p "How many Mished Potatoes do you want: " chik_qunt
echo " "
price=`expr $chik_qunt \* 150`
else
echo "Wrong Input!!!!"
fi
elif (($item == 4))
then
echo " "
echo "Which types of Burgers do you want: "
echo "_____________________________________"
echo "ITEM_NO________TYPES________PRICE"
echo " 1 Chiken 150 Tk "
echo " 2 Egg 50 Tk"
echo " 3 Vagetables 40 Tk"
echo " "
read -p "which types of Burgers do you want: " burg
echo " "
if(($burg ==1))
then
read -p "How many Burgers do you want: " burg_qunt
echo " "
price=`expr $burg_qunt \* 150`
elif (($burg == 2))
then
read -p "How many Burgers do you want: " burg_qunt
echo " "
price=`expr $burg_qunt \* 50`
elif (($burg == 3))
then
read -p "How many Burgers do you want: " burg_qunt
echo " "
price=`expr $burg_qunt \* 40`
else
echo "Wrong Input!!!!"
fi
elif (($item == 5))
then
echo " "
echo "Which types of Chicken soup do you want: "
echo "_____________________________________"
echo "ITEM_NO________TYPES________PRICE"
echo " 1 150 70 Tk "
echo " 2 250 120 Tk"
echo " 3 300 150 Tk"
echo " "
read -p "which types of Chicken soup do you want: " soup
echo " "
if(($soup ==1))
then
read -p "How many Chicken soup do you want: " soup_qunt
echo " "
price=`expr $soup_qunt \* 70`
elif (($soup == 2))
then
read -p "How many Chicken soup do you want: " soup_qunt
echo " "
price=`expr $soup_qunt \* 120`
elif (($soup == 3))
then
read -p "How many Chicken soup do you want: " soup_qunt
echo " "
price=`expr $soup_qunt \* 150`
else
echo "Wrong Input!!!!"
fi
elif (($item == 6))
then
echo -e "\nHere is our Coke list"
echo "_____________________________________"
echo "ITEM_NO________QUANTITY________PRICE"
echo " 1 250 mL 30 tk "
echo " 2 500 mL 50 tk"
echo " 3 1 L 80 tk"
echo " 4 2 L 120 tk"
echo " "
read -p "which Quantity of coke do you want order: " coke
if(($coke ==1))
then
read -p "How many Coke do you want: " coke_quntity
echo " "
price=`expr $coke_quntity \* 30`
elif ((coke == 2))
then
read -p "How many Coke do you want: " coke_quntity
echo " "
price=`expr $coke_quntity \* 50`
elif ((coke == 3))
then
read -p "How many Coke do you want: " coke_quntity
echo " "
price=`expr $coke_quntity \* 80`
elif ((coke == 4))
then
read -p "How many Coke do you want: " coke_quntity
echo " "
price=`expr $coke_quntity \* 120`
else
echo "Wrong Input!!!!"
fi
elif (($item ==7))
then
echo "Coffee item: "
echo " "
echo "_____________________________________"
echo "ITEM_______size_____________price "
echo " 1 200mL cold 60"
echo " 2 200mL 50"
echo " "
read -p "which Quantity of coffee do you want order: " coffe
if ((coffe == 1))
then
read -p "How many Coffee do you want: " coffe_qunt
echo " "
price=`expr $coffe_qunt \* 60`
elif ((coffe == 2))
then
read -p "How many Coffee do you want: " coffe_qunt
echo " "
price=`expr $coffe_qunt \* 50`
else
echo "Wrong Input!!!!"
fi
elif (($item == 8))
then
echo -e "\nHere is our Cake Item"
echo "_____________________________________"
echo "ITEM_NO________QUANTITY________PRICE"
echo " 1 1 pound 120 tk "
echo " 2 2 pound 170 tk"
echo " 3 2.5 pound 220 tk"
echo " 4 3 pound 260 tk"
echo " 5 4 pound 300 tk"
echo " "
read -p "which Quantity of Cake do you want order: " cake
if(($cake ==1))
then
read -p "How many Coke do you want: " cake_qunt
echo " "
price=`expr $cake_qunt \* 120`
elif ((cake == 2))
then
read -p "How many Coke do you want: " cake_qunt
echo " "
price=`expr $cake_qunt \* 170`
elif ((cake == 3))
then
read -p "How many Coke do you want: " cake_qunt
echo " "
price=`expr $cake_qunt \* 220`
elif ((cake == 4))
then
read -p "How many Coke do you want: " cake_qunt
echo " "
price=`expr $cake_qunt \* 260`
elif ((cake == 5))
then
read -p "How many Coke do you want: " cake_qunt
echo " "
price=`expr $cake_qunt \* 300`
else
echo "Wrong Input!!!!"
fi
elif (($item == 9))
then
echo " "
echo "Friench Fries List: "
echo "_____________________________________"
echo "ITEM_NO________ITEM________PRICE"
echo " 1 150 g 50 Tk "
echo " 2 200 g 70 Tk"
echo " 3 250 g 100 Tk"
echo " 4 300 g 130 Tk"
echo " "
read -p "which item of Friench Fries you want: " french
echo " "
if(($french ==1))
then
read -p "How many Friench Fries do you want: " french_qunti
echo " "
price=`expr $french_qunti \* 50`
elif (($french == 2))
then
read -p "How many Friench Fries do you want: " french_qunti
echo " "
price=`expr $french_qunti \* 70`
elif (($french == 3))
then
read -p "How many Friench Fries do you want: " french_qunti
echo " "
price=`expr $french_qunti \* 100`
elif (($french == 4))
then
read -p "How many Friench Fries do you want: " french_qunti
echo " "
price=`expr $french_qunti \* 130`
else
echo "Wrong Input!!!!"
fi
elif (($item == 10))
then
echo " "
echo "Bread stiks List: "
echo "_____________________________________"
echo "ITEM_NO________ITEM________PRICE"
echo " 1 150 g 70 Tk "
echo " 2 200 g 100 Tk"
echo " 3 250 g 120 Tk"
echo " 4 350 g 170 Tk"
echo " "
read -p "which item of Bread stiks you want: " bread
echo " "
if(($bread ==1))
then
read -p "How many Bread stiks do you want: " bread_qunti
echo " "
price=`expr $bread_qunti \* 70`
elif (($bread == 2))
then
read -p "How many Bread stiks do you want: " bread_qunti
echo " "
price=`expr $bread_qunti \* 100`
elif (($bread == 3))
then
read -p "How many Bread stiks do you want: " bread_qunti
echo " "
price=`expr $bread_qunti \* 120`
elif (($bread == 4))
then
read -p "How many Bread stiks do you want: " bread_qunti
echo " "
price=`expr $bread_qunti \* 170`
else
echo "Wrong Input!!!!"
fi
fi
echo -e "__________________________________________________________________________"
echo $name your bill is ready!!!!
echo "Thanks, $name to purchase food from our resturent!"
echo -e "please, check your item\n"
echo -e "please pay the bill and wait for collecting the food!"
echo -e "__________________________________________________________________________"
echo " YOUR BILL IS: "$price
echo -e "\nThank you for purchasing food from our restaurant!!!!\n\n"
echo "$name,____$price" >> restaurant.txt
#else
#echo "Wrong Input!!!!"
read -p "Do you want order more item(yes-1/no-2): " oord
if((oord == 1))
then
echo "_____________________________Welcome TO FAST FOOD RESTAURANT ADMIN PANEL______________________________"
echo "______________________________________________________________________________________________________"
echo "______________________________________________MENU ITEM_______________________________________________"
echo "______________________________________________________________________________________________________"
echo "______________________________________________________________________________________________________"
echo " Item No_________FOOD Name_________________Size____________________________Price_____"
echo " 1 Chicken pot pie 6/8/10/12 inches 150/170/200/250 Tk"
echo " 2 Mashed potatoes 100/200/300/400 g 100/120/150/200 Tk"
echo " 3 Fried chicken 150/200/250 g 150/170/200 Tk"
echo " 4 Burgers chiken/egg/vagetables 150/50/40 Tk"
echo " 5 Chicken soup 150/250/300 g 70/120/150 tk"
echo " 6 coke 250/500/1/2 L 30/50/80/120 tk"
echo " 7 Coffe 200 mL 50/60 tk"
echo " 8 cake 1/2/2.5/3/4 pound 120/170/220/260/300 Tk"
echo " 9 French fries 150/200/250/300 g 50/70/100/130 tk"
echo " 10 Bread stiks 150/200/250/350 g 70/100/120/170 Tk"
echo "________________________________________________________________________________________________________"
echo "________________________________________________________________________________________________________"
else
break
fi
done