Lab 4
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 ## Assignment Amazon recently announced [Amazon Go](https://www.amazon.com/b?ie=UTF8&node=16008589011#). > 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 `ArrayList` 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 `Lab4` class found in the [__lab4.zip__](lab4.zip) file containing the starter code. All of the classes must be in a package with your username. ## Calculating Taxes In Milwaukee county, no taxes are assessed on produce and milk. 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/).

Wednesday, 28-Dec-2016 14:18:26 EST