Instantiate the stack class in the main function and


Implement a stack ADT by writing a class called Stack.

Use a static array to hold stack elements. 

Question 1: Instantiate the Stack class in the main function and provide a user loop and a menu so that all the Stack class member-functions, push, pop, etc., are available so that the user can thoroughly exercise the member-functions of the Stack class. 

Question 2: Implement a ReversePrint() for the stack.  My StackProject, whose exposition I have given you, already has implemented a Print(), as well as Push() and Pop().

Question 3: Implement a Roll() operator, which, when executed, interchanges the first two elements in an instance of the stack class.  Ask yourself the question and answer it:  what is the stack interface?

Answer these parts in details and give examples to support your rationale.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Instantiate the stack class in the main function and
Reference No:- TGS0944324

Expected delivery within 24 Hours