Question
SPA fried chicken In SPA fried chicken customers place orders of the food items they want. The order has the order number and the list
SPA fried chicken In SPA fried chicken customers place orders of the food items they want. The order has the order number and the list of items, their prices and the quantities for each item ordered. The total price to be paid by the customer is also shown on the order. Orders are presented in the queue in first in first out (FIFO) manner. An array is used to implement the solution. a) Write down all classes ADTs required to implement the solution. [7] b) Implement the following methods. Ensure that both AddNew and Remove methods run at O(1) i) AddNew() the method must add a new order in the queue.[6] ii) Remove() the method removes the order from the queue.[6] iii) Display() The method displays the orders starting with the last order to join the queue. All details of each order are displayed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started