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
-
9. [-/2.28 Points] DETAILS BBUNDERSTAT13 7.3.020.S. MY NOTES ASK YOUR TEACHER PRACTICE ANOTHER How often do we use social media to talk about our love life? A study released a report on data and...
-
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...
-
Give the major product of each of the following reactions, ignoring stereoisomers: (a) (b) (c) (d) (e) (f) (g) (h) +NBS peroxide CH-=-CHCH-CH-CH, NBS + peroxide CH3 +NBS peroxide CH3CHCH3 Cl2 CH3 hy...
-
The characterization of the Southern Ocean in the first paragraph (lines 18) primarily serves to emphasize A) The improbability of Smetaceks success. B) The pessimism of Smetaceks detractors. C) The...
-
Explain why mass transfer correlations for co-flow cannot be used for countercurrent flow.
-
Porter, Inc., acquired a machine that cost $720,000 on October 1, 2010. The machine is expected to have a four-year useful life and an estimated salvage value of $80,000 at the end of its life....
-
j . How is PepsiCo unique to the competition? What products and services are different?
-
Bennett et al. (2003) measured the refractive index (RI) of a pane of glass at 49 di erent locations. She took a sample of 10 fragments at each location and determined the RI for each. The data from...
-
Consider a small country with only three producers, X, Y, and Z, who produce ink, pen, and paper, respectively. Y uses ink (output of X) in its production of pens. X produces 1,444 liters of ink...
-
Synthesize a four-bar mechanism to generate a function y = sin x for 0 x 90. The range of the output crank may be chosen as 60 while that of input crank be 120. Assume three precision point obtained...
-
give some citations for this Essay, Citations should be documented in the American Psychological Association (APA) Format. Introducing racial segregation among prisons, lets begin saying that racial...
-
Julio Suarez has asked to meet with one of his bank's investment advisors and is introduced to Peter Schultz, the bank's mutual fund specialist. Julio tells Peter that he has a long investment time...
-
Working with what you have learned about employment law, you will apply your knowledge to analyze and draw a conclusion on the fact patterns below. Part A Familiarize yourself with each fact scenario...
-
2x Find all absolute extreama for f(x) = x + 1 on the interval [0,10]
-
Is it possible for the minimum wage to create low levels of unemployment, or even none at all? Explain using the concept of the firm's elasticity of labor demand.
-
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...
-
Job Cost Journal Entries and T Accounts Following are certain operating data for Durango Manu- facturing Company for January 2019: Total sales were \($1,800,000\), on which the company earned a 40%...
-
Summarized data for the first month's operations of Dobson Welding Foundry during 2019 are presented below. A job order costing system is used. 1. Materials purchased on account, \($58,000\). 2....
-
During June 2019, its first month of operations, Weston Manufacturing Company completed the transactions listed below. Weston uses a job order costing system. Materials requisitions and the wages...
Study smarter with the SolutionInn App