Question
Remove item from carte Change item quantityd i Output items' descriptions Output shopping carta - Quite C- OP a Choose an option: ADD ITEM TO
Remove item from carte Change item quantityd i Output items' descriptions Output shopping carta - Quite C- OP a Choose an option: ADD ITEM TO CART Enter the item name: Enter the item description: Enter the item price: Enter the item quantity: Your output ends with MENU a 2. W C - 0 0 Add item to carte Remove item from carte Change item quantityd Output items' descriptionsd Output shopping cartd - Quite 1 Choose an option: REMOVE ITEM FROM CART Enter name of item to remove: ** Item Not Found ** Item Not Found ** MENU a - Add item to cart d - Remove item from cart Change item quantity i - Output items' descriptions Output shopping cart a - Quit Choose an option: REMOVE ITEM FROM CART Enter name of item to remove: Item not found in cart. Nothing removed.d MENU Expected output ends with a - Add item to cart d - Remove item from cart c Change item quantity i - Output items' descriptions Output shopping cart - Quit Choose an option: Output differs. See highlights below. Special character legend John Doe February 1, 2016 a Nike Romaleos Volt color, Weightlifting shoes 189 2 a Chocolate Chips Semi-sweet 3 Input 0 0 0 0 0 5 a Powerbeats 2 Headphones Bluetooth headphones 128 1 d Chocolate Chips a REMOVE ITEM FROM CART Enter name of item to remove: ** Item Successfully Removed MENU a - Add item to cart d - Remove item from cart
2016 Your output ends with Nike Romaleos 2 @ $189 = $378 Powerbeats 2 Headphones 1 @ $128 = $128 Total: $506 Total: $ 506 MENU a - Add item to cart d - Remove item from cart Change item quantity i - Output items' descriptions o- Output shopping cart - Quit Choose an option: REMOVE ITEM FROM CART Enter name of item to remove: MENU a - Add item to cart d - Remove item from cart C - Change item quantity i - Output items' descriptions 0 - Output shopping cart a - Quit Choose an option: OUTPUT SHOPPING CART John Doe's Shopping Cart Number of Items : 3 February 1, 2016 Expected output ends with Nike Romaleos 2 @ $189 = $378 Powerbeats 2 Headphones i @ $128 = $128 Total: $506 MENU a - Add item to cart d Remove item from cart Change item quantity i - Output items' descriptions Output shopping cart Q- Quit C- 0 Choose an option: Output differs. See highlights below. Special character legend John Doe February 1, 2016 a Nike Romaleos Volt color, Weightlifting shoes 189 2 Input a Chocolate Chips Semi-sweet 3 5 a Powerbeats 2 Headphones Bluetooth headphones 128 1 i a
2016 Item Descriptions Nike Romaleos: Volt color, Weightlifting shoes Chocolate Chips: Semi-sweet Powerbeats 2 Headphones: Bluetooth headphones MENU a Add item to cart d - Remove item from cart Change item quantity i - Output items' descriptions 0 - Output shopping cart Quit Choose an option: OUTPUT ITEMS' DESCRIPTIONS John Doe's Shopping Cart - February 1, 2016 Item Descriptions Nike Romaleos: Volt color, Weightlifting shoes Chocolate Chips: Semi-sweet Powerbeats 2 Headphones: Bluetooth headphonesd Expected output ends with MENU a - Add item to cart d - Remove item from cart C - Change item quantity i - Output items' descriptions Output shopping cart Q - Quit 0 Choose an option: 34.2 LAB*: Program: Online shopping cart (Part 2) This program extends the earlier Online shopping cart" program. (Consider first saving your earlier program). (1) Extend the ItemToPurchase class per the following specifications: Parameterized constructor to assign item name, item description,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started