Ace - AI Tutor
Ask Our Educators
Textbooks
My Library
Flashcards
Scribe - AI Notes
Notes & Exams
Download App
robert ware

robert w.

Divider

Questions asked

BEST MATCH

Question 4 1 pts In a coin toss bet, where both heads and tails are equally likely, you win a dollar on heads but lose a dollar on tails. The expected value of the bet is O -$0.50 O $0.00 O $1.00 O $0.50

View Answer
divider
BEST MATCH

The Nature and Properties of Soils by Brady and Weil (15th E

View Answer
divider
BEST MATCH

Automated Restaurant System (Command Design Pattern) 120 pts. 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. SCENARIO (of the basic system) Display menu Submit Order Display tab 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 entrée will just be the name of the dish ("Roast Beef", "Chicken Korma", "Jiaozi", etc.) and the price. APPROACH You should implement the Command design pattern. This includes the following: Text-based user interface SystemInterface class Invoker class Command interface Command classes (one for each command) Aggregator class Menu class Menultem Class Orders class Orderitem Class Tab class The user interface should 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 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 Orderitem 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 corresponding to the methods of the system interface. Each method simply creates a Command object of the appropriate Command class (constructed with a reference to the Aggregator object), calls its execute method, and returns the results (as a single object) back to the system interface. (Execute methods should not be passed any parameter values - any values needed are passed to the constructor.) 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.) EXTENSION OF THE BASIC SYSTEM You are to extend the design and capabilities of the program in any ways that you wish, by using the design patterns we learned in the class. The intent is to demonstrate the significant and appropriate use of design patterns. In addition to the command design pattern, at least TWO other design patterns need to be used/identified from your system. Following are some ideas on how the system may be extended: Capability of maintaining orders (and tabs) for multiple tables. Capability of maintaining a queue of waiting groups of different size to be seated, and automatically seated as people leave tables (triggered when tab paid). Capability of maintaining an inventory of items (tomatoes, etc.) and their depletion as orders are prepared, which may have various effects (e.g., what is offered on the menu, the price of certain items, the options offered for certain items) Capability of "dynamic pricing" in which menu items change price based on factors such as how well certain items is selling. Capability of generating various reports (sales, inventory, etc.) Capability of manager adjusting a given table's tab based on some factors. Anything else you can think of!

View Answer
divider
BEST MATCH

Which of the following income categories is not a common kind of income that retirement, pension, or annuity income is often considered as? Earned Income Passive Income Ordinary Income Investment Income

View Answer
divider
BEST MATCH

The specific role of acetylcholine in the excitation-contraction coupling mechanism is to: Question 27 options: bind to actin to help expose myosin binding site initiate a nerve stimulus at the axon terminal and motor end plate react with the triad to transfer the stimulus to muscle cells bind specific receptors on the sarcolemma to open sodium gates diffuse into the sarcoplasm to release calcium from the terminal cisternae.

View Answer
divider
BEST MATCH

What is the root-mean-square speed of CO at 113 °C? 317 m/s 58.3 m/s 586 m/s 993 m/s 3170 m/s

View Answer
divider
BEST MATCH

Bramble Hardware Store completed the following merchandising transactions in the month of May. At the beginning of May, the ledger of Bramble showed Cash of $7,400 and Common Stock of $7,400. May 1 Purchased merchandise on account from Black Wholesale Supply for $8,000, terms 1/10, n/30. 2 Sold merchandise on account $4,300, terms 2/10, n/30. The cost of the merchandise sold was $3,100. 5 Received credit from Black Wholesale Supply for merchandise returned $200. 9 Received collections in full, less discounts, from customers billed on May 2. 10 Paid Black Wholesale Supply in full, less discount. 11 Purchased supplies for cash $900. 12 Purchased merchandise for cash $2,700. 15 Received $230 refund for return of poor quality merchandise from supplier on cash purchase. 17 Purchased merchandise on account from Wilhelm Distributors for $2,700, terms 2/10, n/30, FOB shipping point. 19 Paid freight on May 17 purchase $220. 24 Sold merchandise for cash $5,300. The merchandise sold had a cost of $3,800. 25 Purchased merchandise on account from Clasps, Inc. for $800, terms 3/10, n/30. 27 Paid Wilhelm Distributors in full, less discount. MacBook Air

View Answer
divider
BEST MATCH

According to a particular website 15% of a group of people are left handed. If we select 7 people at random, find the probability that the number who are left handed is at least 2. What probability should be found? A. $1 - P(0 \text{ or } 1 \text{ are left handed})$ B. $P(0, 1, \text{ or } 2 \text{ are left handed})$ C. $P(2 \text{ are left handed})$ D. $P(1 \text{ is left handed})$ The probability that at least 2 are left handed is (Round to four decimal places as needed.)

View Answer
divider
BEST MATCH

Write the formulas of the following compounds. 1. chloride trifluoride 2. dichlorine monoxide 3. dinitrogen tetrafluoride 4. phosphorus pentafluoride

View Answer
divider
BEST MATCH

which axis would be labeled “Time of day (hour)”?________ axis; which axis would be labeled “Body Temperature (*C)”? _________.

View Answer
divider