Question: Define a multidimensional array named inventory to store the supermarket's inventory. Each row should represent an item, and each column should represent the following attributes:
Define a multidimensional array named inventory to store the supermarket's inventory. Each row should represent an item, and each column should represent the following attributes: Item ID Item Name, Quantity Available, Price per Unit.
Implement methods to perform the following operations:
AddItem: Add a new item to the inventory with the provided attributes.
RemoveItem: Remove an item from the inventory based on the Item ID
UpdateQuantity: Update the quantity available for a specific item.
UpdatePrice: Update the price per unit for a specific item.
Demonstrate the functionality of the inventory management system in the main method. Allow the user to perform operations such as adding, removing, updating quantity, and updating price, and display the updated inventory after each operation.
MARKS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
