Question: Implement a To Do list in Java. Tasks have a priority between 1 and 9 , and a description ( which you can come up

Implement a To Do list in Java. Tasks have a priority between 1 and 9, and
a description (which you can come up with on your own, say, wash dishes). The program is going to prompt the user to enter the tasks by running the method add_priority_description, the program adds a new task and prints the current list with priority 1 tasks on the top, and priority 9 tasks at the bottom. The program will continue to ask the user if they want to add another tasks, and repeat
the add_priority_description method, or enters Q to run the quit method to quit the program.
Sample output (not limited to)
1. Study for the final
1. Take the final
2. Watch Justice League with friends
3. Play ball
9. Wash Dishes
9. Clean room
Hint:
1. Use all related source codes from the textbook as a start. Pick and choose the correct files and interfaces.
2. There is a possibility of two tasks having the same priority. If so, the last task that was entered gets to be printed first.
3. Use HEAP in your solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!