Inventory Bin Queue
Modify the program you wrote for Programming Challenge 12 so it uses a queue instead of a stack. Compare the order in which the parts are removed from the bin for each program.
Reference: Programming Challenge 12
Inventory Bin Stack
Design an inventory class that stores the following members.
serialNum: an integer that holds a part's serial number manufactDate: a member that holds the date the part was manufactured lotNum: an integer that holds the part's lot number
The class should have appropriate member functions for storing data into, and retrieving data from, these members. Next, design a stack class that can hold objects of the class. If you wish, you may use the template you designed in Programming Challenge 1 or 2. Last, design a program that uses the stack class. The program should have a loop that asks the user whether he or she wishes to add a part to inventory or take a part from inventory. The loop should repeat until the user is finished. If the user wishes to add a part to inventory, the program should ask for the serial number; date of manufacture, and lot number. The information should be stored in an inventory object and pushed onto the stack. if the user wishes to take a part from inventory, the program should pop the topmost part from the stack and display the contents of its member variables. When the user finishes, the program should display the contents of the member values of all the objects that remain on the stack.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.