Question: Option 2b. Create a program named restaurant.java that implements a queue of food orders. The class is below. class Order String Item; double Price; Date
Option 2b. Create a program named restaurant.java that implements a queue of food orders. The class is below. class Order String Item; double Price; Date OrderTime - new Date() 17 add a constructor with parameters for the attributes Main program methods should include Enqueue, Dequeue. The main program should have the following menu options: 1 - Enqueue an order for a taco 2- Enqueue an order for a burrito 3 Enqueue an order for a quesadilla 4 tist e s queue 5- Dequeue an order 6 Exit Your Choice: Extra Credit: Instead of a dequeue option, have an order dequeued every 10 seconds. Dequeued items should be listed whenever you do any menu option Create a program named restaurant.java that implements a queue of food orders. The class is below: Class order string Item; double price, Date Order Time = new Date(); Il add, a constructor with porometre for the attributes Main program methods should include Enqueue, Dequeue The main program should have the follo- wing menu option = Engueue an order for a taco - Enqueve an order for a burrito = Enqueue an order for a quesadilla = list all items in queue = I eque ve an order - Exit Your Chorice: Extra Credit Intead of a dequen have an order dequeved every end of a dequeve option ritem To second. show be listed whenever you do any menu option
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
