Experimenting with Queues
- Write a program that uses a circular queue to store the race numbers of competitors as they finish a race. Include a routine to dequeue the numbers after the race and output the corresponding competitors' names in finish order.
- Write programs using a queue implemented as (1) an array, (2) a circular queue and (3) a linked list for a record structure of your choosing.
- Look at program StackClassDemo and write a class for a queue. Write a program to create and use an object of the queue class.