Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: In this assignment, we will be building on M 4 Pro, remember M 4 Pro was a store inventory. The program should continue to

Instructions:
In this assignment, we will be building on M4Pro, remember M4Pro was a store inventory.
The program should continue to work the same only in this assignment, we also want to write the information into files.
The completed M4Pro is linked below.
For those who successfully completed M4Pro and would like to build on what they did, please feel free to do that
M4Pro.zip
Find more information on how it should work below.
Remember M4Pro was a menu driven program that displayed a list of 5 choices, see image below. The program is still to display the same choices only the information each choice generates is to also be written to CSV files.
---------Menu
Display Inventory Content
Category Lookup
Item Lookup
Update Item Info
Exit
How it should work:
if the user chooses "1", the program is still to display the inventory content but it should ALSO write the information into a CSV file. The file should be called "inventory".
if the user chooses "2", the program is to ask for the category . After the category is entered, the program is to do the following
Remember the first letter of each word of the category name is capitalized, for instance "Desk Supplies". Therefore when obtaining the category name from the user, make sure it's converted to the same case.
if the category is not found, notify the user (this is done already in attached program)- csv file has the following header row (Item name, Quantity, Unit Price, Total)
a $ MUST be added to amounts under "Unit Price" and "Total" columns (both when displaying and when writing the amounts)
The file name should be assigned the category name.
if the user chooses "3", the program is to ask the user to enter the item name. Again make sure that the program converts what the user enters to the same case as the items (first letter is capitalized). Also ...
if the Item is not found, notify the user(program does that already)- csv file has the following header row (Item name, Quantity, Unit Price, Total)
a $ MUST be added to amounts under "Unit Price" and "Total" columns (both when displaying and when writing the amounts)
The file name should be assigned the item name.
if the user chooses "4", the program is to update the inventory dictionary AND re-write the inventory.csv file.
IMPORTANT:
ALL CSV files MUST have header rows
Exception handling for user entry
Submission : zipped folder containing 2 files (name the folder m6Lab_firstname_last_name) replace fistname and last_name with your actual name
Functions requested for menu choices are to be saved in a separate file. Assign this file an appropriate pame (make sure it doesn't start with a capital letter)
The main program file (also make sure it's assigned an appropriate name that doesn't start with a capital letter)
image text in transcribed

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions