Implement Linear Queue using Arrays

Write a program to implement a queue using an array with the following operations:

  • enqueue() – add an element to the rear.
  • dequeue() – remove an element from the front.
  • display() – show all elements in the queue.
  • isFull()
  • isEmpty()
Input