Question: Instructions: For this assignment , you are required to create a program that could be used by a small business that provides a small variety

Instructions: For this assignment , you are
Instructions: For this assignment , you are required to create a program that could be used by a small business that provides a small variety of office and work supplies. The nested dictionary(three levels) below references the store inventory. inventory = Category 1: Desk Supplies "Desk Supplies" : { "Pens" : {"Quantity" :150, "Unit Price" :3.45}, "Pencils": {"Quantity" : 200, "Unit Price":1.50}, "Markers": {"Quantity" :140, "Unit Price":5.0} , "Sharpners": {"Quantity": 190, "Unit Price" :1.85} }, Office Equipment" : { "Chairs" : {"Quantity":100, "Unit Price":130}, Category 2: Office Equipment "Desks": {"Quantity":23, "Unit Price": 350.99}, "Fax machines" : {"Quantity" :23, "Unit Price":400}, "Calculators": {"Quantity" : 15, "Unit Price": 124.89} Computer Accessories":{ "Flash Drives": {"Quantity": 87, "Unit Price": 54.88}, Category 3: Computer "External Hard Drives" : {"Quantity" : 15, "Unit Price" :174.89}, Accessories 'External DVD Drives" : {"Quantity" : 15, "Unit Price": 84.29} Notice the following: 1. The inventory name is a dictionary named "inventory" 2. The inventory dictionary references 3 categories , "Desk Supplies", "Office Equipment" and "Computer Accessories". 3. Notice that the value that each category points to is a dictionary that references sevaral items, for instance the "Desk Supplies" category references a dictionary that has four items ("Pens", "Pencils" , "Markers" and "Sharpners") and each one of these items points to another dictionary that references the following . Quantity o Unit Price Instructions: 1. Add a main() function to the main program and create the inventory dictionary shown above in the main function. Make sure it looks like the image shown above. 2. The purpose of this program is to allow the business owner to check and update their inventory

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!