Write a C program that will allow a user to manage the inven

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

Solution

#include #include #include #define MAX_REC 10 class Inventory{ char itemName[15]; int code; double cost; public: void getdata(); void showdata(); }; void Inventory :: getdata(){ cout<<\"\ Enter Item Name : \"; cin>>itemName; cout<<\"Enter Code : \"; cin>>code; cout<<\"Enter Cost : \"; cin>>cost; } void Inventory :: showdata(){ cout<>n; cout<<\"Enter \"<
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 e

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site