Question: C + + Objective: Create a class to implement queue data structure using stacks. Instructions: Implement a class named stackQueue to represent a queue using

C++ Objective: Create a class to implement queue data structure using stacks.
Instructions:
Implement a class named stackQueue to represent a queue using stacks.
Please implement the following operations:
enqueue,
dequeue,
size,
isEmpty,
isFull,
front, returns the front element
rear, returns the rear element
In the main cpp file, create an instance of this class and then test those functions.
Write a function reverseQueue, to reverse all the elements in the queue.
Hint:
You can use the stack class that you created for the last lab assignment with modifications.
What to Submit:
You need to demo your code and your final submission (zip file) will need to have the following files:
main.cpp
stack.cpp
stack.h
Screen captures of your output
C + + Objective: Create a class to implement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!