Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Display Inventory Content Category Lookup Item Lookup Update Item Info 0 - m e ] It should be obvious that the program is not to

image text in transcribed
Display Inventory Content Category Lookup Item Lookup Update Item Info 0 - m e ] It should be obvious that the program is not to stop unless the user enters 5 If user enters 1 v The program is to call a function that displays the inventory content in a tabular format. See output example below Category Item Quantity Unit Price Desk Supplies Pens 150 $3.45 Desk Supplies Pencils 200 $1.5 Desk Supplies Markers 140 $5.0 Desk Supplies Sharpners 190 $1.85 Office Equipment Chairs 100 $130 Office Equipment Desks 23 $350.99 Office Equipment Fax machines 23 $400 Office Equipment Calculators 15 $124.89 Computer Accessories Flash Drives 87 $54.88 Computer Accessories External Hard Drives15 $174.89 Computer Accessories External DVD Drives 15 $84.29 Make sure a header row is added to the output as shown in example above. 3. If user enters 2 The program is to call a function that does the following: - Asks the user for the name of the category (you could consider displaying the list of existing categories and - If in correct category is entered, the program should notify the user that the entry was incorrect then either display the main menu again or ask the user to re-enter the category. - if the category is found , the program is to display the item information that fall under that category(item name, quantity and unit price, tabular format optional here) If user enters 3 The program is to call a function that does the following: -Asks the user to enter the item name - Display item information (item name, quantity and unit price) - if item not found, notify the user that the item they are looking for is either not provided or not entered right. *Make sure information is displayed in a tabular format again and includes a header row If user enters 4 The program is to call a function that does the following -Asks user to enter the name of the item they want to change - if not found , notify the user that their entry was invalid and ask them to re-enter the item name. - if found , ask the user what is it that they want to update (Quantity or Unit price) - After the user makes their choice , ask them to enter the new value and update the item dictionary accordingly. i If user enters 5 | The program is to display a statement that notifies the user that the program will stop then terminates. * If user enters an invalid option . ; . the program is to display a statement that tells the users that they entered an invalid option then displays the menu again : '

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

More Books

Students also viewed these Programming questions