/** * Solution to Java Review Question 1 * * @author Dave Slemon * @version v100 */ public class TestProgram { public static void main(String[] args) { Item i = new Item ("USB Stick",35.00,1); Item i2 = new Item("USB Stick",35.00,2); Item s = new Item ("Shampoo",12.00,1); Cart c = new Cart(); try { c.addItem(i); c.addItem(i2); // note the cart only has one USB Stick with qty=2 c.addItem(s); } catch (Exception e) { System.out.println("Error: qty or price error "); } c.checkout(); //c.removeItem(i,1); Not written yet! } }