Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

M4Project Instructions At Introduction: Assignment evaluates students understanding of collections, dictionaries specifically. It also requires using skills learned in previous modules Instructions: For this assignment

image text in transcribed
M4Project Instructions At Introduction: Assignment evaluates students understanding of collections, dictionaries specifically. It also requires using skills learned in previous modules 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 item 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. Details on how the program should work is provided in link below

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

Students also viewed these Programming questions