Question: Simple Shopping Cart Application In this programming exercise, we will develop a simple shopping card application with the following functionalities (only using Python skills we

Simple Shopping Cart Application

In this programming exercise, we will develop a simple shopping card application with the following functionalities (only using Python skills we have learned from the first six chapters of the textbook):

1.For vendors: add and remove items. Each item has brief description, price, average rating.

Products Information

Vendor Product Category Item Info (Description : Price : Rating)

NetGear Switch 5-Port Gigabit Ethernet Unmanaged Switch:300:4.2

18-Port Gigabit Ethernet Unmanaged Switch:1800:4.3

36-Port Gigabit Ethernet Unmanaged Switch:3000:4.2

LinkSys Switch 6-Port Gigabit Ethernet Unmanaged Switch:1200:3.7

24-Port Gigabit Ethernet Unmanaged Switch:2200:3.3

48-Port Gigabit Ethernet Unmanaged Switch:3200:4.1

D-Link Switch 12-Port Gigabit Ethernet Unmanaged Switch:700:4.1

18-Port Gigabit Ethernet Unmanaged Switch:2000:4.9

24-Port Gigabit Ethernet Unmanaged Switch:2200:4.3

Buffalo

Switch

8-Port Gigabit Ethernet Unmanaged Switch:400:4.3

18-Port Gigabit Ethernet Unmanaged Switch:600:4.8

36-Port Gigabit Ethernet Unmanaged Switch:1200:4.3

Jupiter

Router

2-Port Gigabit manageable router:1200:3.3

2-Port Gigabit VoIP router:2000:3.3

4-Port Gigabit Enterprise WAN router:200:4.3

Internal Data Structure

productDict = {

'NetGear' : {'switch' : ['5-Port Gigabit Ethernet Unmanaged Switch:300:4.2','18-Port Gigabit Ethernet Unmanaged Switch:1800:4.3',' 36-Port Gigabit Ethernet Unmanaged Switch:3000:4.2']},

'LinkSys' : {'switch' : ['6-Port Gigabit Ethernet Unmanaged Switch:1200:3.7',' 24-Port Gigabit Ethernet Unmanaged Switch:2200:3.3',' 48-Port Gigabit Ethernet Unmanaged Switch:3200:4.1']},

'D-Link' : {'switch' : ['12-Port Gigabit Ethernet Unmanaged Switch:700:4.1',' 18-Port Gigabit Ethernet Unmanaged Switch:2000:4.9',' 24-Port Gigabit Ethernet Unmanaged Switch:2200:4.3']},

'Buffalo' : {'switch' : ['8-Port Gigabit Ethernet Unmanaged Switch:400:4.3',' 18-Port Gigabit Ethernet Unmanaged Switch:600:4.8',' 36-Port Gigabit Ethernet Unmanaged Switch:1200:4.3']},

'Jupiter' : {'router' : ['2-Port Gigabit manageable router:1200:3.3',' 2-Port Gigabit VoIP router:2000:3.3',' 4-Port Gigabit Enterprise WAN router:200:4.3']}

}

2.For user:search for products based on vendors name, product category, price range, keywords, rating, etc.

3.Test case:

To find an 18-Port switch with lowest price

To find an 18-Port switch with highest rating

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!