Question: PYTHON Create a shopping cart for Yonline Shop which sells 6 products whose unit price and stock in hand is given below. Product Unit Price

Create a shopping cart for "Yonline Shop" which sells 6 products whose unit price and stock in hand is given below. Product Unit Price Stock in hand P1 5 50 P2 10 50 P3 10 50 P4 10 50 P5 5 50 P6 10 50 A customer can add an item (A) to the cart with the qty, he can update his qty(U) or he can remove the item(R) from the cart before he freezes the shoping. (X) A // added product p1 of 10 qty (P1,10) U // updated product p1 to 15 qty D1 16 A customer can add an item (A) to the cart with the qty, he can update his qty(U) or he can remove the item(R) from the cart before he freezes the shoping. (X) // added product p1 of 10 qty (P1.10) U // updated product pl to 15 gty (P1.15) A (P4,10) (P3, 10) R //Removed P1 (P1) A (P2,10) X // freezed shopping Output: Item in the Cart: P2, P3, P4 Sales amount: 300
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
