Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
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