Open arcangelo7 opened 1 year ago
Write the Python class Restaurant
Restaurant
menu_items: a dictionary in which each dish on the menu is associated with its price
menu_items
book_table: a list containing the numbers of reserved tables
book_table
customer_orders: a list of dictionaries with the format {'table_number': table_number, 'order': order}
customer_orders
{'table_number': table_number, 'order': order}
add_item_to_menu
book_tables
add_customer_order
Write the Python class
Restaurant
Attributes
menu_items
: a dictionary in which each dish on the menu is associated with its pricebook_table
: a list containing the numbers of reserved tablescustomer_orders
: a list of dictionaries with the format{'table_number': table_number, 'order': order}
Methods
add_item_to_menu
book_tables
add_customer_order
Perform the following tasks