c. The cashier takes the wanted items list, removes the actual items from the display, and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
c. The cashier takes the wanted items list, removes the actual items from the display, and adds them to an order. d. The customer pays for the order and takes the food home. Once home, they take each piece out and eat it. Sample Output: Welcome to Shinji's Sushi Shop! The cashier takes your order: 0 18 4 11 The cashier prepares your order. That will be $99. Here is your order, please come again. Back at your apartment, you take out your sushi and eat it Eating Sushi (number=11, weight=53 grams, $32} .. yum! Eating Sushi {number=4, weight=60 grams, $31} yum! Eating Sushi {number=0, weight=81 grams, $23} yum! Eating Sushi (number=18, weight=99 grams, $13} . yum! Software Dev.& Problem Solving II Heaps, Sets, & Maps GCIS-124 Assignment 6.3 Goals of the Assignment The goal of this assignment is to use the data structures we've discussed this week to solve a problem. As always, you are expected to demonstrate good software engineering practices including use of version control and testing. Read this document in its entirety before asking the course staff for help! Activities 1. Shinji's is the most exclusive sushi shop in Rochester. It only serves premium quality unique sushi creations every day. To order, customers view the available items behind a glass display case. Each item is labeled with only a number. The customer picks between 3 and 8 items and hands their list to the cashier. The cashier then removes the items from the case and carefully places them into the to-go bag, heaviest item to lightest item. The customer then pays, takes the order home, and enjoys. In this activity you will write a simulation for this process using the data structures discussed during Unit 06. For this activity you may use Java's implementation for Set, Map, PriorityQueue (Java's heap), and Stack. You may not use a List. 2. Start by creating a Sushi class. Each piece of sushi is identified by the following pieces of information: a. number the number that is associated with the piece of sushi and used to order it. b. weight how much the sushi weighs (random value from 20- 100 grams). c. price - the cost of the piece of sushi (random value between $10 and $40). d. In addition to the state and any accessors, Sushi should have a toString which includes all the state information and be able to be sorted by weight. 3. Each Order consists of a cost and a bag, which contains the Sushi. When creating this class, consider what data structure would best represent the bag. 4. The main class will be the Shop. Only one customer will be simulated per run. The main flow for the shop should be: a. Create the display with 25 items in it. b. The customer writes down the number for 3 - 8 unique items that are in the display (you must use a Set to store the items). c. The cashier takes the wanted items list, removes the actual items from the display, and adds them to an order. d. The customer pays for the order and takes the food home. Once home, they take each piece out and eat it. Sample Output: Welcome to Shinji's Sushi Shop! The cashier takes your order: 0 18 4 11 The cashier prepares your order. That will be $99. Here is your order, please come again. Back at your apartment, you take out your sushi and eat it Eating Sushi (number=11, weight=53 grams, $32} .. yum! Eating Sushi {number=4, weight=60 grams, $31} yum! Eating Sushi {number=0, weight=81 grams, $23} yum! Eating Sushi (number=18, weight=99 grams, $13} . yum! c. The cashier takes the wanted items list, removes the actual items from the display, and adds them to an order. d. The customer pays for the order and takes the food home. Once home, they take each piece out and eat it. Sample Output: Welcome to Shinji's Sushi Shop! The cashier takes your order: 0 18 4 11 The cashier prepares your order. That will be $99. Here is your order, please come again. Back at your apartment, you take out your sushi and eat it Eating Sushi (number=11, weight=53 grams, $32} .. yum! Eating Sushi {number=4, weight=60 grams, $31} yum! Eating Sushi {number=0, weight=81 grams, $23} yum! Eating Sushi (number=18, weight=99 grams, $13} . yum! Software Dev.& Problem Solving II Heaps, Sets, & Maps GCIS-124 Assignment 6.3 Goals of the Assignment The goal of this assignment is to use the data structures we've discussed this week to solve a problem. As always, you are expected to demonstrate good software engineering practices including use of version control and testing. Read this document in its entirety before asking the course staff for help! Activities 1. Shinji's is the most exclusive sushi shop in Rochester. It only serves premium quality unique sushi creations every day. To order, customers view the available items behind a glass display case. Each item is labeled with only a number. The customer picks between 3 and 8 items and hands their list to the cashier. The cashier then removes the items from the case and carefully places them into the to-go bag, heaviest item to lightest item. The customer then pays, takes the order home, and enjoys. In this activity you will write a simulation for this process using the data structures discussed during Unit 06. For this activity you may use Java's implementation for Set, Map, PriorityQueue (Java's heap), and Stack. You may not use a List. 2. Start by creating a Sushi class. Each piece of sushi is identified by the following pieces of information: a. number the number that is associated with the piece of sushi and used to order it. b. weight how much the sushi weighs (random value from 20- 100 grams). c. price - the cost of the piece of sushi (random value between $10 and $40). d. In addition to the state and any accessors, Sushi should have a toString which includes all the state information and be able to be sorted by weight. 3. Each Order consists of a cost and a bag, which contains the Sushi. When creating this class, consider what data structure would best represent the bag. 4. The main class will be the Shop. Only one customer will be simulated per run. The main flow for the shop should be: a. Create the display with 25 items in it. b. The customer writes down the number for 3 - 8 unique items that are in the display (you must use a Set to store the items). Software Dev.& Problem Solving II Heaps, Sets, & Maps GCIS-124 Assignment 6.3 Goals of the Assignment The goal of this assignment is to use the data structures we've discussed this week to solve a problem. As always, you are expected to demonstrate good software engineering practices including use of version control and testing. Read this document in its entirety before asking the course staff for help! Activities 1. Shinji's is the most exclusive sushi shop in Rochester. It only serves premium quality unique sushi creations every day. To order, customers view the available items behind a glass display case. Each item is labeled with only a number. The customer picks between 3 and 8 items and hands their list to the cashier. The cashier then removes the items from the case and carefully places them into the to-go bag, heaviest item to lightest item. The customer then pays, takes the order home, and enjoys. In this activity you will write a simulation for this process using the data structures discussed during Unit 06. For this activity you may use Java's implementation for Set, Map, PriorityQueue (Java's heap), and Stack. You may not use a List. 2. Start by creating a Sushi class. Each piece of sushi is identified by the following pieces of information: a. number the number that is associated with the piece of sushi and used to order it. b. weight how much the sushi weighs (random value from 20- 100 grams). c. price - the cost of the piece of sushi (random value between $10 and $40). d. In addition to the state and any accessors, Sushi should have a toString which includes all the state information and be able to be sorted by weight. 3. Each Order consists of a cost and a bag, which contains the Sushi. When creating this class, consider what data structure would best represent the bag. 4. The main class will be the Shop. Only one customer will be simulated per run. The main flow for the shop should be: a. Create the display with 25 items in it. b. The customer writes down the number for 3 - 8 unique items that are in the display (you must use a Set to store the items).
Expert Answer:
Answer rating: 100% (QA)
Below are the steps you can follow to complete this assignment 1 Create the Sushi class Define a cla... View the full answer
Related Book For
Auditing An International Approach
ISBN: 978-0071051415
6th edition
Authors: Wally J. Smieliauskas, Kathryn Bewley
Posted Date:
Students also viewed these programming questions
-
ccn2 java solve them all . . . r2 e1 e2 box r2 Write sound typing and subtyping rules for these constructs. [5 marks] Now suppose that we add to this calculus the type variables and bounded universal...
-
ccm1 java attend all . . . r2 e1 e2 box r2 Write sound typing and subtyping rules for these constructs. [5 marks] Now suppose that we add to this calculus the type variables and bounded universal...
-
Consider the following grooves, each of width W, that have been machined from a solid block of material. (a) For each case obtain an expression for the view factor of the groove with respect to the...
-
If Carissa Dalton has a $130,000 home insured for $100,000, based on the 80 percent co-insurance provision, how much would the insurance company pay on a $5,000 claim?
-
Differentiate the function and find the slope of the tangent line at the given value of the independent variable. 9 f(x) = x + = X' x = -3
-
Priscilla Webster was dining at her favorite Massachusetts seafood restaurant when matters went horribly wrong. She began choking on a fishbone that had been lurking in her seafood chowder. After a...
-
Accountants for Johnson, Inc., have assembled the following data for the year ended December 31, 2012: Requirement 1. Prepare Johnsons statement of cash flows using the indirect method. Include an...
-
Two years after the first round XMP GmbH receives a second offer form B-Capital. B-Capital offers to invest 12,500,000.00 at a 60,000,000.00 pre-money valuation. What is the founders' post-round...
-
Choose the best answer. 1. Under GASB standards, intangible assets include a. Computer software internally generated by government personnel. b. Water rights. c. Leased assets. d. All of the above....
-
is it true that News organizations have been significantly increasing the number of reporters assigned to cover international issues?
-
Communication apprehension refers to the fear or anxiety people experience at the thought of being evaluated by others. When was the last time you (or watched someone else) experience(d) anxiety in...
-
Provided about tax preparation options. How would you classify the market structure of the tax preparation industry? What are the benefits to this type of market structure? What are some of the costs?
-
On January 1, Northern Inc. had 200,000 common shares authorized, 10,000 common shares issued, and 9,500 common shares outstanding. On May 1, Northern sold all of its treasury stock. After this...
-
Damerly Company (a Utah employer) wants to give a holiday bonus check of $275 to each employee. Since it wants the check amount to be $275, it will need to gross-up the amount of the bonus. Calculate...
-
36. Tarzan has mass of 75 kg. He swings on a 5m long vine. At the bottom of his swing he is moving at speed v. How does the vine tension (T) compare with his weight (mg) - provide a reason. a) T = mg...
-
A 55-kg dog is resting on the 5th floor of the building which is 89 hm above the ground. What is the Potential Energy?
-
Three forces with magnitudes of 70pounds, 40 pounds, and 60 pounds act on an object at angles of 30, 45, and 135, respectively, with the positive x-axis. Find the direction and magnitude of the...
-
How does managements costbenefit trade-off decision affect control risk?
-
The Generous Loan Company has 100 branch loan offices. Each office has a manager and four or five subordinates who are employed by the manager. Branch managers prepare the weekly payroll, including...
-
During his examination of the inventories and related accounts of Consumer Electronics Inc., a manufacturer and distributor of small appliances, an auditor encountered the following: a. Several...
-
Using the data in Tables 7.13 and 7.14, does this farm qualify for debt (i.e., is the farm profitable, liquid, and solvent)? Table 7.13 Table 7.14 Item 2006 2007 2008 2009 2010 2011 2012 Gross cash...
-
The book basis of depreciable assets for Erwin Co. is 900,000 and the tax basis is 700,000 at the end of 2015. The enacted tax rate is 34% for all periods. Determine the amount of deferred taxes to...
-
How does an asset gain or loss develop in pension accounting?
Study smarter with the SolutionInn App