Lab 3
Get started now
## Objectives * Translate problem statement into a software design * Make use of interfaces in software design * Implement a small software project based off of a software design ## Resources * The [lab3.zip](lab3.zip) file contains starter code for many of the classes needed for this assignment. ## Assignment In September, Amazon opened it's first [Amazon Go](https://www.chicagotribune.com/business/ct-biz-amazon-go-opens-chicago-store-0917-story.html) store in Chicago. > Amazon Go is a new kind of store with no checkout required. We created the world's most advanced shopping technology so you never have to wait in line. With our Just Walk Out Shopping experience, simply use the Amazon Go app to enter the store, take the products you want, and go! No lines, no checkout. Many of these products have already been modeled in Java. Given the large inventory, multiple class hierarchies are required to describe all of the products for sale. For example: <figure>[![UML Class Diagram](products.png)](products.png)</figure> You have been asked to develop a simple proof-of-concept program to demonstrate how a virtual shopping cart can be created within the app to represent the products added to the physical shopping cart. The shopping cart will need to be able to determine the total value of all the items in the cart and the amount of tax due when the items are purchased. ## Details When a shopper adds an item to their physical shopping cart, the app adds an instance of the corresponding object to a virtual shopping cart. The shopping cart will use an `List` to store a list of all items the shopper has added to their shopping cart. You must create the following `Sellable` interface and determine which classes must implement the interface in order to develop a shopping cart that can handle fruits, vegetables, milk, and soft drinks. <figure>[![Sellable Interface](sellable.png)](sellable.png)</figure> You must implement a `ShoppingCart` class that will work with the `Driver` class found in the [__lab3.zip__](lab3.zip) file containing the starter code. All of the classes must be in a package with your username. ## Calculating Taxes No taxes are assessed on produce and milk by either Wisconsin or Milwaukee. Soft drinks are assessed a 5% Wisconsin state tax and a 0.5% Milwaukee county tax. ## Calculating Costs Your instructor will provide information on how to calculate the cost of each product. ## Extras Your instructor may have additional requirements for this assignment. Please check with your instructor prior to submitting your solution. ## Lab Deliverables > See your professor's instructions for details on submission guidelines > and due dates. > * Dr. Taylor's students: See below > * All other students should refer to Blackboard > > If you have any questions, consult your instructor. ## Acknowledgment This laboratory assignment was developed by [Dr. Chris Taylor](/taylor/).

Thursday, 06-Dec-2018 16:11:14 CST