/stack-adt

An implementation of a link-based Stack Abstract Data Type in C++. Includes implementation of a Node ADT and a Singly-Linked List ADT

Primary LanguageC++MIT LicenseMIT

stack-adt

To complete this, you will need the following:

1)A Node ADT which will have two attributes - a data attribute and a pointer attribute. Remember the Node has to be an ADT, so that it can hold any kind of data.

2)You can choose to use this node as both a data and a head-pointing node or as a simple data node in which case you will need a new head pointing node. For the head-pointing node, please implement both front and rear pointers, even if you may not need to use them.

3)A Singly Linked List ADT which will be composed of one or more of your nodes. Implement the most common linked-list behaviors as explained in class - new list, add anywhere, delete anywhere, find anywhere, count of items in the list, empty the list, etc.

4)Finally, implement a Stack ADT based on your singly linked list which will implement the most common Stack operations like push, pop, isempty etc.

Ensure that your Node, List and Stack ADTs are mimimal and cohesive with adequate walls around them.
Define interfaces as needed, so you can reuse them in all your subsequent assignments.

Then write a main that will demonstrate the capabilities of you Stack ADT with different types of data - numbers, strings and your currency objects.

As already explained, this assignment should be done in Visual Studio or properly changed into a Visual Studio format before submitting. Include your entire VS folder structure zipped as attachment to this question. The exe should work on its own before the coding will be graded. Also, include screenshots of the output. Remember to name your project and zip file name as StackADT_initial_1_initial2. Add the team member names in the response box of the question for the answer to be accepted.