Question: Write a program in c++ Use the Inventory Bins class(Define the operators >, =.) to implement an inventory type array using the ArrayBag class p.
Write a program in c++
Use the Inventory Bins class(Define the operators >, =.) to implement an inventory type array using the ArrayBag class p. 100 Chap 3.


This is the Array:
template class ArrayBag : public BagInterface { private : static const int DEFAULT_CAPACITY = 6;// Small size to test for a full bag ItemType items[DEFAULT_CAPACITY]; // Array of bag items int itemCount; // Current count of bag items int maxItems; // Max capacity of the bag // Returns either the index of the element in the array items that // contains the given target or -1, if the array does not contain // the target. int getIndexOf(const ItemType& target) const; public: ArrayBag(); int getCurrentSize() const; bool isEmpty() const; bool add(const ItemType& newEntry); bool remove(const ItemType& anEntry); void clear(); bool contains(const ItemType& anEntry) const; int getFrequencyOf(const ItemType& anEntry) const; vector toVector() const; }; // end ArrayBag #include "ArrayBag.cpp" #endi
14. Inventory Bins Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program should use a structure that keeps the following data: Description of the part kept in the bin Number of parts in the bin The program should have an array of 10 bins, initialized with the following data Number of Parts in the Bin Part Description Valve Bearing Bushing Coupling Flange Gear Gear Housing Vacuum Gripper Cable Rod 10 15 21 7 25 18 12 14. Inventory Bins Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program should use a structure that keeps the following data: Description of the part kept in the bin Number of parts in the bin The program should have an array of 10 bins, initialized with the following data Number of Parts in the Bin Part Description Valve Bearing Bushing Coupling Flange Gear Gear Housing Vacuum Gripper Cable Rod 10 15 21 7 25 18 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
