Professional Documents
Culture Documents
Online Shopping Cart
Online Shopping Cart
Let's say someone asks you to add an online store to their website. The user's chosen things for
purchase should be able to be kept in the shopping cart, and it should also be able to keep track of
how much everything costs in total. The following features must be added to the shopping cart:
‘One’ Add item already in ‘” Item 01”,40’ ‘False’ "Item 01" already
cart has a price of 20 in
the cart.
‘Two’ Remove item from ‘” Item 01”’ ‘True’ Removing "Item 01"
cart from the shopping
cart
‘Three’ Remove item not in ‘” Item 02”’ ‘False’ The cart lacks "Item
cart 02."
‘Four’ Update item price ‘” Item 01”,30’ ‘True’ Changes "Item’s"
cost to 30
‘Five’ Update price of item ‘” Item 02”,56’ ‘False’ The cart lacks "Item
not in cart 02."
‘Six’ Get item in cart ‘void’ ‘[“Item 01”]’ returns a list of the
items in the cart,
starting with "Item
01".
‘Seven’ Add another item to ‘” Item 02”,50” ‘True’ adds "Item 02" with
cart a cost of 50 to the
shopping basket.
‘Eight’ Get total cost of ‘void’ ‘80’ gives back the total
items in cart price of the cart's
items, which is.
30 + 50 = 80.