Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 915 Bytes

restaurant-ordering-system.md

File metadata and controls

42 lines (34 loc) · 915 Bytes

Restaurant pseudo code

Define variables 

Define string/dictionary(collection) - Menu - item+price Create collection for order/cart Create variable for total_cost

display welcome

PRINT statement - WELCOME TO RESTAURANT

Initiate WHILE loop 

display menu items

 Display menu items - (print statement) - for loop initiate menu_items

prompt menu selection

Prompt menu selection (user input)

prompt qty

Prompt qty  STOP HERE

add to order

ability for cust. to add mult qty of items from menu to order Add to order - fn

continue order

Continue ordering? yes/no boolean - y/n to break while loop  If yes, return If no, break loop <- end of loop

calculate total

for i in customer_order item_total =  print/calculate final total (to two .pt) Final total - items + price/total? - for loop

display menu items

Item number name of item price 1 Burger $5.99 2 Pizza $8.49 3 Salad $4.99 4 Drink $1.99