Introduction Vending machines can be of different types. Some vending machines are dedicated to coffee, some...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Introduction Vending machines can be of different types. Some vending machines are dedicated to coffee, some are dedicated to drinks, and others are dedicated to snacks. For this assignment, you will implement a Snack Vending machine. Deliverables: 1. Provide a UML diagram/s to illustrate your understanding of Object Oriented design techniques and concepts. 2. Provide a code skeleton to the design. 3. Implement the SnackMachine class 4. Provide a test suite to the main class. Specifications of the Snack Machine The Snack Machine has the following characteristics: Money Slots: the machine accepts money of the following types: CoinSlot: There are four denominations: 10c 20c 50c$1 Card Slot all cards accepted Notes Slot :20$ and 50$ only Machine only accepts USD currency Snack Slots The machine has five rows to display snack items. O Each row has 5 columns to pile the items. Each column has a number. Keypad Users can select the items to be purchased using a keypad. L Purchase a Snack Use Case Basic Flow 1. This use case begins when the customer wants to purchase snacks. 2. The customer selects a number by pressing on the keypad. 3. The VM displays a message that the snack is available for the selected number and displays its price. 4. The customer inserts the money. 5. The VM validates the money. 6. The VM accepts the money. 7. The VM displays the accumulated amount of money each time a new money entered. is 8. The VM monitors the amount of the accepted money, If the money is enough, the VM dispenses the selected snack to the customer. 9. The VM determines if any change should be sent back to customer. 10. The VM displays the change at panel. 11. Then, the VM dispenses change. [P.S You are required to come up with alternative scenarios to this basic flow.] Introduction Vending machines can be of different types. Some vending machines are dedicated to coffee, some are dedicated to drinks, and others are dedicated to snacks. For this assignment, you will implement a Snack Vending machine. Deliverables: 1. Provide a UML diagram/s to illustrate your understanding of Object Oriented design techniques and concepts. 2. Provide a code skeleton to the design. 3. Implement the SnackMachine class 4. Provide a test suite to the main class. Specifications of the Snack Machine The Snack Machine has the following characteristics: Money Slots: the machine accepts money of the following types: CoinSlot: There are four denominations: 10c 20c 50c$1 Card Slot all cards accepted Notes Slot :20$ and 50$ only Machine only accepts USD currency Snack Slots The machine has five rows to display snack items. O Each row has 5 columns to pile the items. Each column has a number. Keypad Users can select the items to be purchased using a keypad. L Purchase a Snack Use Case Basic Flow 1. This use case begins when the customer wants to purchase snacks. 2. The customer selects a number by pressing on the keypad. 3. The VM displays a message that the snack is available for the selected number and displays its price. 4. The customer inserts the money. 5. The VM validates the money. 6. The VM accepts the money. 7. The VM displays the accumulated amount of money each time a new money entered. is 8. The VM monitors the amount of the accepted money, If the money is enough, the VM dispenses the selected snack to the customer. 9. The VM determines if any change should be sent back to customer. 10. The VM displays the change at panel. 11. Then, the VM dispenses change. [P.S You are required to come up with alternative scenarios to this basic flow.]
Expert Answer:
Related Book For
Managerial Accounting
ISBN: 978-0078025518
2nd edition
Authors: Stacey Whitecotton, Robert Libby, Fred Phillips
Posted Date:
Students also viewed these programming questions
-
What is the difference between MouseListener and MouseAdapter? [3 marks] (b) Via suitable HTML, the compiled version of the following Java code is presented to the appletviewer application: import...
-
On January 18, 2021, Marigold Co. paid $450,000 for a three-year insurance policy that covers February 1, 2021 through January 31, 2024. Marigold's year end is June 30, 2021. Assuming she records the...
-
Give the rejection region for a test to detect positive rank correlation if the number of pairs of ranks is 16 and you have these a-values: a. = .05 b. = .01
-
Monthly sales are independent normal random variables with mean 100 and standard deviation 5. a. Find the probability that exactly of the next months have sales greater than 100. b. Find the...
-
A sage of selling once said, Your job as a salesperson is to do 80 percent listening and 20 percent talking. Do you agree? Why or why not?
-
Natalia Wallace is the new controller for Smart Software, Inc., which develops and sells education software. Shortly before the December 31 fiscal year- end, James Cauvet, the company president, asks...
-
1.Given this design and assuming all switch connections were in place, how many links would be placed in a blocking state by the STP algorithm? 2.Assuming the switches are configured with suitable...
-
The leadership structure of the New York City Department of Corrections is considered a _______? a. Hierarchial structure b. Authoritarian structure c. Matrix structure d. Flat structure
-
Human resource management requires expertise in a. managing staffing needs as a company evolves. b. training and evaluating employees. c. compensation, disciplinary actions, and promotion of...
-
A brand that markets several different products under the same brand name is a a. manufacturers brand. b. family brand. c. private brand. d. co-brand.
-
Here is the large-country argument for an optimal tariff. Recall the welfare analysis conducted for tariffs in this chapter. We will use this methodology in the exercise that follows. (a) For...
-
When companies compete aggressively on the basis of price, quality, and brand-name image because consumers carefully compare brands, these businesses are most likely selling __________ goods and...
-
When you order take-out pizza, which represents the actual product? a. hunger satisfaction b. crust with tomato sauce and cheese c. prompt delivery d. delicious smell
-
According to valence bond theory, which orbital overlap in the formation of the bond in HCl? a) 1s on H and 3p on Cl b) 1s on H and 4s on Cl c) 1s on H and 2p on Cl d) 2s on H and 3p on Cl e) 2s on H...
-
Identify the tax issues or problems suggested by the following situations. State each issue as a question. Jennifer did not file a tax return for 2007 because she honestly believed that no tax was...
-
Why is it said that the PSNR principle has both a right and a duty side? Which one is most relevant with respect to international environmental law?
-
What, if any, is the normative content of the concept of SD?
-
Would you consider the PSNR principle still relevant today? Why?
Study smarter with the SolutionInn App