Experimenting with Queues

  1. 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.
  2. 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.
  3. Look at program StackClassDemo and write a class for a queue. Write a program to create and use an object of the queue class.
Programming - a skill for life!

Demonstrations of queues, circular queues, and linked list queues