Menu

(Solved) : Modify Inventory Management System Use Separate Container Class Main Items Collection Mult Q37229050 . . .

Modify the inventory management system to use separate containerclass to main the items collection and multiple modules to organizeyour code.

#include using namespace std; class item { private: unsignedlong int id[20]; string name[20]; float cost[20]; int quantity[20];int z; public: void add_(void)/*add item to an inventory*/ {cout<<“nEnter the item ID:”; cin>>id[z];cout<<“nEnter the item Name:”; cin>>name[z];cout<<“nEnter the Price of the item:”; cin>>cost[z];cout<<“nEnter the item Quantity:”; cin>>quantity[z];z++;/*to increase array pointer*/ } void remove_(void)/*to removefrom ID search and delete*/ { int i,j,k,flag=0;cout<<“nPlease Enter the Item ID:”; cin>>i;for(j=0;j>i; if(z==0) { cout<<“nNo Items to Display.”; }for(j=0;j>strname; for(i=0;i>i; switch(i) { case 1: {shopping_mall.add_(); break; } case 2: { shopping_mall.remove_();break; } case 3: { shopping_mall.display_(); break; } case 4: {shopping_mall.findbyid(); break; } case 5: {shopping_mall.findbyname(); break; } case 6: { cout<<“GoodBye! Thank You.”; break; } } if(i==6) break; } return 0; }

Expert Answer


Answer to Modify the inventory management system to use separate container class to main the items collection and multiple modules…

OR