Tuesday, October 26, 2010

LabTest#2-Section 6 -- Sample Output ( in accordance to above Driver Class)

Sorry about the minor glitch in the TotalPrice Calculation. I had forgotton to reset TotalPrice to 0 : It should be ok now
----------------------------------------------------------------------------------------

Item Added: Item Name: blue shirt Item Price: $100 Item Size:M 
Item Added: Item Name: blue shirt Item Price: $120 Item Size:S
Item Added: Item Name: maroon shirt Item Price: $130 Item Size:L
Item Added: Item Name: brown pant Item Price: $65 Item Size:32
Item Added: Item Name: black pant Item Price: $130 Item Size:34
Item Added: Item Name: brown pant Item Price: $100 Item Size:33
Item Added: Item Name: black shoe Item Price: $200 Item Size:8
Item Added: Item Name: black shoe Item Price: $200 Item Size:8
Item Added: Item Name: grey shoe Item Price: $200 Item Size:8
TOTAL PRICE = $1245
ITEMS BOUGHT:
Quantity = 2 blue shirt
Quantity = 1 maroon shirt
Quantity = 2 brown pant
Quantity = 1 black pant
Quantity = 2 black shoe
Quantity = 1 grey shoe

Item Removed: Item Name: maroon shirt Item Price: $130 Item Size:L
Item Removed: Item Name: black pant Item Price: $130 Item Size:34
Item Removed: Item Name: black shoe Item Price: $200 Item Size:8
TOTAL PRICE = $785
ITEMS BOUGHT:
Quantity = 2 blue shirt
Quantity = 2 brown pant
Quantity = 1 black shoe
Quantity = 1 grey shoe

Cart Cleared
TOTAL PRICE = $0
ITEMS BOUGHT:

Item Added: Item Name: green shirt Item Price: $130 Item Size:L
Item Added: Item Name: green pant Item Price: $130 Item Size:34
Item Added: Item Name: green shoe Item Price: $200 Item Size:8
TOTAL PRICE = $460
ITEMS BOUGHT:
Quantity = 1 green shirt
Quantity = 1 green pant
Quantity = 1 green shoe

No comments: