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 and 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 addprioritydescription, the program adds a new task and prints the current list with priority tasks on the top, and priority tasks at the bottom. The program will continue to ask the user if they want to add another tasks, and repeat
the addprioritydescription method, or enters Q to run the quit method to quit the program.
Sample output not limited to
Study for the final
Take the final
Watch Justice League with friends
Play ball
Wash Dishes
Clean room
Hint:
Use all related source codes from the textbook as a start. Pick and choose the correct files and interfaces.
There is a possibility of two tasks having the same priority. If so the last task that was entered gets to be printed first.
Use HEAP in your solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
