Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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 option

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

Define turnover intent.

Answered: 1 week ago

Question

Ability to work comfortably in a team environment

Answered: 1 week ago

Question

Exposure to SQL desirable but not required

Answered: 1 week ago