Question: This is C++ exercise (DATA STRUCTURE). Please show clearly all the work and all the file including the output example of each question. Thanks. Queues

This is C++ exercise (DATA STRUCTURE). Please show clearly all the work and all the file including the output example of each question. Thanks.

Queues Questions.

* Create two different queues using one template Queue

- Create 2 files : Queue.h & main.cpp

- in Queue.h write a class Queue specification using templates

- In Driver.cpp file, declare 2 queue object name: intQueue and this stack should hold up to 5 integer values. The other name: stringQueue, and hold up 5 string values.

- Enter integer values to be added to the intQueue: Make sure to enter at least 5 numbers, so that the queue is full. Then the program will remove Dequeue the numbers and output them to the screen.

- Enter string values to be added to the stringQueue: Make sure to enter at least 5 strings, so that the queue is full. Then the program will remove Dequeue the characters and output them to the screen.

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 Databases Questions!