Question: Implement a to do list. Tasks have a priority between 1 and 9, and a description. When the user enters the command add priority description,
Implement a to do list. Tasks have a priority between 1 and 9, and a description. When the user enters the command add priority description, the program adds a new task. When the user enters next, the program removes and prints the most urgent task. The quit command quits the program. Use a priority queue in your solution.
Step by Step Solution
3.51 Rating (158 Votes )
There are 3 Steps involved in it
When the user enters the command add priority description create a task with the the priority and the description entered in the command Then the program adds a new task When the user enters next the ... View full answer
Get step-by-step solutions from verified subject matter experts
