Question
Implementing priority Queue Using LinkedList Write a Java program that keeps track of your To-Do list for a given day. The list has a pre-set
Implementing priority Queue Using LinkedList
Write a Java program that keeps track of your To-Do list for a given day. The list has a pre-set limit of 10. Use pop-up windows for user interactions (input/output). You should display a menu like the following:
Each chore has data/message item and a numeric/priority item. The list is formed as a Priority Queue. That means, entered sequentially, the following chores:
Message: Call Mom, Priority: 2
Message: Return Library Book, Priority: 2
Message: Pickup Paycheck, Priority: 1
Message: Start Working on Java Homework, Priority: 3
Message: Pay Phone Bill, Priority: 1
should be recorded as:
Message: Pickup Paycheck, Priority: 1
Message: Pay Phone Bill, Priority: 1
Message: Call Mom, Priority: 2
Message: Return Library Book, Priority: 2
Message: Start Working on Java Homework, Priority: 3
The menu operations are largely what it says, and as it was demonstrated in class. Unlike, as it was demonstrated in class, all your interactions with user should be through pop-up windows.
Things To Do List for l'Your Name] 1 Insert an entry 2 show the first entry Remove the first entry Length of queue 5: Is it full 6: Is it empty 7:Empty the queue 8:Display queue contents 0: Quit Enter your optionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started