Menu

[Solved] Design an inventory class that stores the following members

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 pasrt’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 described above Last, design a program that uses the stack class described above. The program should have a loop that asks the user if he or she wishes to add a part to inventory, or take a part from inventory. The loop should repeat until the user finishes. 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 data should be stored in an object, and pushed onto the stack. If the user wishes to take a part from inventory, the program should pop the top-most part from the stack and display the contents of its member variables When the user finishes the program, it should display the contents of the member values of all objects that remain on stack. Modify this program so that uses queue instead of stack One program should be with stack

Design an inventory class that stores the following members: serialNum: An integer that holds a parts serial number manufactDate: A member that holds the date the part was manufactured lotNum: An integer that holds the pasrts 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 described above Last, design a program that uses the stack class described above. The program should have a loop that asks the user if he or she wishes to add a part to inventory, or take a part from inventory. The loop should repeat until the user finishes. 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 data should be stored in an object, and pushed onto the stack. If the user wishes to take a part from inventory, the program should pop the top-most part from the stack and display the contents of its member variables When the user finishes the program, it should display the contents of the member values of all objects that remain on stack. Modify this program so that uses queue instead of stack One pogtan shoud be with stack

Expert Answer


Answer to Design an inventory class that stores the following members: serial Num: An integer that holds a part’s serial number manufact Date….

OR


Leave a Reply

Your email address will not be published. Required fields are marked *