Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions