Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. The program must use the LinkedStack structure in its implementation. 2. The program must present a menu of options selecting the operations that can

1. The program must use the LinkedStack structure in its implementation.
2. The program must present a menu of options selecting the operations that can be done with the Inventory, Add, Remove class, search for a part of the inventory by its serial number and print the contents of the 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
retrievingdata from, these members.
Next, use a LinkedStack class that can hold objects of the class described
above.
Last, design a program that uses the LinkedStack class described above.
The program shouldhave 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 is finished.
If the user wishes to add a part to inventory, the program should ask for the
serialnumber, date of manufacture, and lot number. The data 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
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 the objects that remain on the stack

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

Students also viewed these Databases questions

Question

1. What are the pros and cons of five sources of job candidates?

Answered: 1 week ago

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago