Queue

Download Category:

Queue.zip - (450.89 KB)
[
Queue/Debug/
Queue/Debug/cl.command.1.tlog
Queue/Debug/CL.read.1.tlog
Queue/Debug/CL.write.1.tlog
Queue/Debug/link.9308.read.1.tlog
Queue/Debug/link.9308.write.1.tlog
Queue/Debug/link.9308-cvtres.read.1.tlog
Queue/Debug/link.9308-cvtres.write.1.tlog
Queue/Debug/link.command.1.tlog
Queue/Debug/link.read.1.tlog
Queue/Debug/link.write.1.tlog
Queue/Debug/link-cvtres.read.1.tlog
Queue/Debug/link-cvtres.write.1.tlog
Queue/Debug/mt.command.1.tlog
Queue/Debug/mt.read.1.tlog
Queue/Debug/mt.write.1.tlog
Queue/Debug/Queue.exe
Queue/Debug/Queue.exe.embed.manifest
Queue/Debug/Queue.exe.embed.manifest.res
Queue/Debug/Queue.exe.intermediate.manifest
Queue/Debug/Queue.ilk
Queue/Debug/Queue.lastbuildstate
Queue/Debug/Queue.log
Queue/Debug/Queue.obj
Queue/Debug/Queue.pdb
Queue/Debug/Queue.vcxprojResolveAssemblyReference.cache
Queue/Debug/Queue.write.1.tlog
Queue/Debug/Queue_manifest.rc
Queue/Debug/rc.command.1.tlog
Queue/Debug/rc.read.1.tlog
Queue/Debug/rc.write.1.tlog
Queue/Debug/vc100.idb
Queue/Debug/vc100.pdb
Queue/Queue.cpp
Queue/Queue.sln
Queue/Queue.suo
Queue/Queue.vcxproj
Queue/Queue.vcxproj.filters
Queue/Queue.vcxproj.user
Queue/Screenshot_1.jpg
]

Write a C++ program to implement a queue using linked lists. The program should provide the following functionality:

Enqueue data into queue
Dequeue data from queue
Print data at the front
Print data at the back
Print the entire queue
Check if the queue is empty
Print the number of elements in the queue
Test your program using at least the following test cases (considering the queue includes integers):

Check if the queue is empty: Option F.
Enqueue 7 into the queue: Option A.
Enqueue 4 into the queue: Option A.
Check if the queue is empty: Option F.
Dequeue data form the queue.
Print the number of elements in the queue: Option G.
Enqueue 5 into the queue: Option A.
Print the number of elements in the queue: Option G.
Check if the queue is empty: Option F.
Print data at the front: Option C.
Print data at the back: Option D.
Print entire queue: Option E.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.