Question: Create a struct called Product to represent individual products with the following attributes: Product ID ( integer ) Product Name ( string ) Product Price
Create a struct called "Product" to represent individual products with the following attributes:
Product ID integer
Product Name string
Product Price double
Quantity in Stock integer
Create a class called "Inventory" to manage the overall inventory. The class should include the following functionality:
Add a new product to the inventory.
Remove a product from the inventory.
Display information about a specific product.
Display the entire inventory.
Implement a menudriven program that allows the user to interact with the inventory system. The menu should include options to add, remove, display information, and display the entire inventory. Once the user is done with one menu option, the program should ask if they want to run another menu option or if they want to quit.
You need to demonstrates the use of a struct product to represent individual products and a class inventory to manage the overall inventory system.
Input validation should be considered throughout the whole program.
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
