Question: CS 2413 LAB-4 Stacks and Queues 1. Turn your linked list from lab 2 into a Stack. At a minimum your Stack should have the

CS 2413 LAB-4 Stacks and Queues 1. Turn your linked list from lab 2 into a Stack. At a minimum your Stack should have the functions listed below. Be sure to have a Stack.h, Stack.cpp and main.cpp file in your submission. This time write your program so that it asks the user for input. When pop is called the number that is popped should be displayed. Display a menu that asks the user -110 pts] their choice for the function that they want to execute: * push(int num) epop isEmpty * print epeek 2. Turn your linked list from lab 2 into a Queue. At a minimum your Queue should have the functions listed below. Be sure to have a Queue.h, Queue.cpp and main.cpp file in your submission. This time write your program so that it asks the user for input. When Dequeue is called the number that is deleted should be displayed. Display a menu that asks the user their choice for the function that they want to execute: [10 pts] enqueue(int num) * dequeue . isEmpty *print pee
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
