Question: Objective To create a console - based inventory management system that tracks the stock of items in a store. This system will use various types

Objective
To create a console-based inventory management system that tracks the stock of items in a store. This system will use various types of functions, user-defined data types, and arrays.
Requirements
User-Defined Data Types
Define a struct named `Item` that contains the following fields: `id`(integer),`name`(string),`price`(float), and `quantity`(integer).
Arrays
Create an array of `Item` structs named `inventory` that will store the stock of the store.
Functions
Implement the following functions:
`addItem(Item inventory[], int &size)`: Accepts the inventory array and a reference to the current number of items. This function allows the user to add a new item to the inventory.
`listItems(const Item inventory[], int size)`: Accepts the inventory array and the current number of items, then prints all the items in the inventory.
`updateQuantity(Item inventory[], int size)`: Accepts the inventory array and the current number of items, then allows the user to update the quantity of an item.
`calculateTotalValue(const Item inventory[], int size)`: Returns the total value of all the items in the inventory.
Main Program
The main program should allow the user to choose an action from a menu such as adding an item, listing all items, updating the quantity of an item, or calculating the total inventory value. The menu should loop until the user decides to exit the program.
Deliverables
Source code file(s) with well-commented code.
Video showing the successful compilation and running of the program with you on camera narrating its functionality.

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 Databases Questions!