Write a C++ program that will allow a user to manage the inventory of a store (y
ID: 3921080 • Letter: W
Question
Write a C++ program that will allow a user to manage the inventory of a store (you may sell anything you want).The inventory for a small electronics store for example will contain the following information for each item in the inventory:
SKU (stock-keeping unit, an integer, could be ANY integer)
quantity (how many of this item in stock)
price (in dollars and cents)
make+model (i.e. “Samsung 32GB version 3”, may contain spaces in it)
Your store should contain similar fields.
Your program should offer the user a menu with the following options:
Add a new item to the inventory (prompt user for input values)
Remove an item from the inventory (by sku)
Display the information for an item (given the sku)
Display the inventory sorted by sku
Quit
Your program
Should read the inventory from file when it loads
Should save the inventory to file after performing menu items 1 or 2 above
Should be error free
Explanation / Answer
#include #include #include #define MAX_REC 10 class Inventory{ char itemName[15]; int code; double cost; public: void getdata(); void showdata(); }; void Inventory :: getdata(){ coutitemName; coutcode; coutcost; } void Inventory :: showdata(){ coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.