FoodManager - TableOrders are stored in the table pointer array. - int getTable(int) assigns tables to the customers. The parameter is the number of seats at the requested table. A request is always...

FoodManager - TableOrders are stored in the table pointer array. - int getTable(int) assigns tables to the customers. The parameter is the number of seats at the requested table. A request is always made for a table with 2, 4 or 6 seats. This function checks the status of the tables, if a table is available with the requested number of seats it returns the number of table. Tables are numbered from 1 to 40. The function returns zero if there is no available table for the requested size. void getTableOrder(int) function receives as parameter number of a table and receives customer orders. It creates a CustomerOrder object for each customer, then creates food items ordered by the customer, and adds them to the array of ordereditems in the CustomerOrder object for that customer.

Jan 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here