ITEC 120 LAB 22 Back to Lab index page

A Shopping Cart

In this exercise you will complete a class that implements a shopping cart as an array of items. The file Item.java contains the definition of a class named Item that models an item one would purchase. An item has a name, price, and quantity (the quantity purchased). (You do not need to make any changes to Item.java) The file ShoppingCart.java implements the shopping cart as an array of Item objects. (You will make some changes to ShoppingCart.java).