Answered step by step
Verified Expert Solution
Question
1 Approved Answer
retail store utilizes a computerized system to track its product inventory, includingdetails such as item name, category, price, manufacturer, and current stock level.When a customer
retail store utilizes a computerized system to track its product inventory, includingdetails such as item name, category, price, manufacturer, and current stock level.When a customer requests a specific product, the store manager inputs the item nameand category into the system. The system then verifies whether the product is listedin the inventory. If the product is not found, the system displays an appropriatemessage. If the product is listed, the system provides its details and prompts the storemanager to input the desired quantity. If the requested quantity is available, thesystem calculates the total cost of the product; otherwise, it alerts the store managerthat the requested quantity is out of stock.Requirements: Implement a structure named Product with the following attributes: ItemID integer ItemName string Quantity in Stock integer Price per Unit float Category String Manufacturer String Define the functions to operate on the inventory to add the product: This function should prompt the user to input details for a new productand add it to the array of products. Update the product stock accordingly Define a function to display the details of all items in the inventory Write a function to update the quantity in stock for the specified product. This function should prompt the user to enter an itemID and the quantityto update in stock Define a function that should calculate and return the total value of the entireinventory sum of quantity price for each product Write a main function to test your implementation. The main function shouldprovide a menudriven interface allowing users to: Add a new product to the inventory. Display all products in the inventory. Update the quantity in stock for a specific product. Calculate and display the total value of the inventory. Exit the program.The design must include any one validation metric for user inputs.Ensure proper indentation and comments in your code to enhance readability and understanding.
Also need to do the algrathim and the flowchart
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started