Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROBLEM You are to implement an automated restaurant system utilizing the Command design pattern, minimally consisting of the following three commands. You will then extend

image text in transcribed

image text in transcribed

PROBLEM You are to implement an automated restaurant system utilizing the Command design pattern, minimally consisting of the following three commands. You will then extend this basic system in any way that you choose to demonstrate the use of additional design patterns. . Display menu e Submit Order Display tab SCENARIO (of the basic system) In the basic system, we assume that all orders are from the same table (i.e., there is only one table in the restaurant). Therefore, a tab is generated by simply totaling all of the ordered items, and tabs are not stored The menu of the basic system will consist of just main entrees. It will not include appetizers, desserts, drinks, etc. The information for each entre will just be the name of the dish (Roast Beef, "Chicken APPROACH You should implement the Command design pattern. This includes the following Systeminterface class Invoker class Command interface interfaces/classes of the Command classes (one for each command) Menu class Menultem Class Orders class Orderltem Class Tab class The user interface shold just be a text-based numbered list of options, implemented in the main method. (It can be a GUI if you desire and are familiar with the development of GUIs, but no extra points will be given for this) The Systeminterface can be a class of all static methods (one for each of the commands of the user interface) if it does not have any state in your extension of the program. The Aggregator class maintains references to the Menu object and the Orders object. It should provide a getter method for retrieving the Menu and Orders objects (no setters are needed). The Menu and Orders classes store a collection of Menultem and Orderltem objects, respectively. A Menultem object will store the menu item #, the description, and its cost. An Orderitem object will store an order by its item number only (not its description The Invoker class has methods cooresponding to the methods of the system interface. Each method creates a Command object of the appropriate Command class (constructed with a reference to the Aggregator object, and any other parameters providing needed information for the Command object), calls its execute method, and returns the single object results it gets back to the system interface. (Execute methods should not be passed any parameter values -any needed values are passed to theconstructor.) A tab will be constructed from the Tab class containing all of the ordered items, returned as an array of strings for the user interface to display. Note that a tab needs information from both the Menu and the Orders objects. (The Orders object indicates what menu items were ordered, and the Menu class has the description of each item to include in the Tab.) In voke ek foce ro PROBLEM You are to implement an automated restaurant system utilizing the Command design pattern, minimally consisting of the following three commands. You will then extend this basic system in any way that you choose to demonstrate the use of additional design patterns. . Display menu e Submit Order Display tab SCENARIO (of the basic system) In the basic system, we assume that all orders are from the same table (i.e., there is only one table in the restaurant). Therefore, a tab is generated by simply totaling all of the ordered items, and tabs are not stored The menu of the basic system will consist of just main entrees. It will not include appetizers, desserts, drinks, etc. The information for each entre will just be the name of the dish (Roast Beef, "Chicken APPROACH You should implement the Command design pattern. This includes the following Systeminterface class Invoker class Command interface interfaces/classes of the Command classes (one for each command) Menu class Menultem Class Orders class Orderltem Class Tab class The user interface shold just be a text-based numbered list of options, implemented in the main method. (It can be a GUI if you desire and are familiar with the development of GUIs, but no extra points will be given for this) The Systeminterface can be a class of all static methods (one for each of the commands of the user interface) if it does not have any state in your extension of the program. The Aggregator class maintains references to the Menu object and the Orders object. It should provide a getter method for retrieving the Menu and Orders objects (no setters are needed). The Menu and Orders classes store a collection of Menultem and Orderltem objects, respectively. A Menultem object will store the menu item #, the description, and its cost. An Orderitem object will store an order by its item number only (not its description The Invoker class has methods cooresponding to the methods of the system interface. Each method creates a Command object of the appropriate Command class (constructed with a reference to the Aggregator object, and any other parameters providing needed information for the Command object), calls its execute method, and returns the single object results it gets back to the system interface. (Execute methods should not be passed any parameter values -any needed values are passed to theconstructor.) A tab will be constructed from the Tab class containing all of the ordered items, returned as an array of strings for the user interface to display. Note that a tab needs information from both the Menu and the Orders objects. (The Orders object indicates what menu items were ordered, and the Menu class has the description of each item to include in the Tab.) In voke ek foce ro

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

Students also viewed these Databases questions

Question

2. Discuss various aspects of the training design process.

Answered: 1 week ago