Answered step by step
Verified Expert Solution
Link Copied!

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:1. 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)2. 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.3. Define a function to display the details of all items in the inventory.4. 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.5. Define a function that should calculate and return the total value of the entireinventory (sum of quantity * price for each product).6. Write a main () function to test your implementation. The main function shouldprovide a menu-driven 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

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_2

Step: 3

blur-text-image_3

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Eric Redmond ,Jim Wilson

1st Edition

1934356921, 978-1934356920

More Books

Students also viewed these Databases questions

Question

Why are effective followers as important as effective leaders?

Answered: 1 week ago