Question: C++ Choose either stack or queue and implement using list class. Comment for any questions C++ Take either example 1 or 2 from below and
C++ Choose either stack or queue and implement using list class. Comment for any questions

C++ Take either example 1 or 2 from below and use the list class from the STD to solve the problem. Don't need to do both just one of the ones either STACK OR QUQE EXAMPLE 1 Implement/ Hard Code a Doubly Linked Lists and make it a Stack The user will input a string and the program will output the string backwards Displaying correct Stack implementation Utilize the conventional static methods as needed push() pop() empty() peek() peek() Sample Execution Please input String happy yppab EXAMPLE 2 Implement / Hard Code a Doubly Linked Lists and make it a Queue The user will input a string and the program will return the string with each letter in the string duplicated. Displaying correct Queue implementation Methods as needed Sample Execution Please input String happy yppab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
