Java question on queue, computer science homework help

Java question on queue, computer science homework help

Description

You are tasked with implementing three different queues:

  1. Dynamic Array FIFO Queue
  2. Doubly Linked List FIFO Queue
  3. Priority Queue (in 3 different classes)

You are also to write a driver program called ‘AssignmentQueueDriver.java’.

Driver Program

The driver should start by prompting the user for the type of queue he or she would like:

What type of queue would you like:

  1. Array FIFO Queue
  2. Linked List FIFO Queue
  3. Priority Queue

Next, the program should loop on the following prompt:

What would you like to do:

  1. Add item to queue
  2. Dequeue
  3. Quit

If the user selects option 1, then prompt the user for the name of the new assignment, followed by the value and days until due. If the second option is selected, then dequeing from the queue and print out the object (use the toString provided).

Test Cases

As with all our projects, you are expected to generate your own test cases. Consider dequeing from an empty queue. What if an assignment has 0 days until due? (in separate file)

And follow the java style sheet !!

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper