Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

HELP ME WITH THIS PLEASE I AM LOST THIS PART IS GIVEN class InvBin { private: st

ID: 3530218 • Letter: H

Question

HELP ME WITH THIS PLEASE I AM LOST THIS PART IS GIVEN class InvBin { private: string description; int qty; public: InvBin (string d = "empty", int q = 0) { description = d; qty = q; } void setDescription(string d) string getDescription() void setQty(int q) int getQty( ) }; class BinManager { private: InvBin bin[30]; int numBins; public: BinManager() { numBins = 0; } BinManager(int size, string d[], int q[]) { } string getDescription(int index) int getQuantity(int index) string displayAllBins() bool addParts(int binIndex, int q) bool removeParts(int binIndex, int q)

Explanation / Answer

Check this...this might be helpful.


class InvBin
{
private:
string description;
int qty;
public:
InvBin (string d = "empty", int q = 0)
{
description = d;
qty = q;
}
void setDescription(string d)

{

this.description=d;

}

string getDescription()

{

return this.description;

}

void setQty(int q)

{

this.qty=q;

}

int getQty( )

{

return this.qty;

}


};



class BinManager
{
private:
InvBin bin[30];
int numBins;
public:
BinManager()
{
numBins = 0;
}
BinManager(int size, string d[], int q[])
{
}
string getDescription(int index)

{

bin[index].getDescription();

}


int getQuantity(int index);

{

bin[index].getQty();

}

string displayAllBins();
bool addParts(int binIndex, int q);
bool removeParts(int binIndex, int q);
};


int main()

{

BinManager binManager=new BinManager();

cout<<"enter number of bins";

cin>>numOfbins;

for(i=0;i<numOfBins;i++)

{

binManager.getDescription

binManager.getQuantity(i);

}


}