Java Queue program computer science assignment help
We're the ideal place for homework help. If you are looking for affordable, custom-written, high-quality and non-plagiarized papers, your student life just became easier with us. Click either of the buttons below to place your order.
Order a Similar Paper
Order a Different Paper
Description
You are tasked with implementing three different queues:
- Dynamic Array FIFO Queue
- Doubly Linked List FIFO Queue
- Priority Queue
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:
- Array FIFO Queue
- Linked List FIFO Queue
- Priority Queue
Next, the program should loop on the following prompt:
What would you like to do:
- Add item to queue
- Dequeue
- 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 dequeue 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?
Write Up
- Run time Analysis: Use Big-Oh notation to give the runtime complexity of each sorting method you implemented