BURGER MACHINE
Burger
CHICKENS DOUBLE PATTY
CRISPY DOUBLEER PATTY
SMOKY GRILLED CHICKEN
Add-ons
CHILLI
ONION
Extras
PEPSI
TIPSY
Add Order To Cart
Clear All Orders
View Menu Items List
BURGERS
0x
NO. OF BURGER MACHINES AVAILABLE IN KITCHEN
Estimate Time
ESTIMATED TIME TO COOK THE ORDER COMPLETELY
USING QUEUE AND SCHEDULING ALGORITHM
0 MINS
ESTIMATED TIME TO COOK THE ORDER COMPLETELY
USING PRIORITY QUEUE AND SCHEDULING ALGORITHM
0 MINS
from script import burger_god order_queue = [] def add_order(*ags, **kws): current_order = Element('burger').value + " with " + Element('addon').value + " and " + Element('extras').value order_queue.append(current_order) outputstr = "" count = 1 for i in order_queue: if(len(outputstr) != 0): outputstr = outputstr + f' {count:02d}. ' + i else: outputstr = f' {count:02d}. ' + i count = count + 1 pyscript.write('order-queue-box', f'{outputstr}') pyscript.write('no-of-burgers-count', f'{len(order_queue)}x') def clear_order(*ags, **kws): global order_queue order_queue = [] Element('order-queue-box').clear() pyscript.write('no-of-burgers-count', f'{len(order_queue)}x') pyscript.write('queue-time', f'0 MINS') pyscript.write('pqueue-time', f'0 MINS') def estimate_time_func(*ags, **kws): global order_queue number_of_machines = Element("no-of-machines-counter").value x,y = burger_god(order_queue, int(number_of_machines)) pyscript.write('queue-time', f'{x} MINS') pyscript.write('pqueue-time', f'{y} MINS')