Question: To read the inventory file, open it . The file walmart _ inventory.csv is named. For each main category in the table, determine the total

To read the inventory file, open it.
The file walmart_inventory.csv is named.
For each main category in the table, determine the total inventory value (quantity * price).
Show the "Primary Category" and "Value" column headers, centered above the subsequent columns.
Show the names of each main category along with the appropriate alignment and currency format of the associated inventory value.
Display "Total" and the total inventory value in currency format using the same alignment.
rubric:
Functions There are at least 2 functions used in the app. Functions Any variables, dictionaries, file pointers, etc. which are needed in/from a function are passed/returned. Output #1 Display column headers of Primary Category and Value(center aligned above the following columns). Output #2 Display each primary category name and display the corresponding inventory value in currency format with proper alignment. Output #3 Using the same alignment, display Total and the total inventory value in currency format. File is opened and read correctly. Cells are correctly converted to the appropriate data types

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!