So many things To Do

This assignment is intended to see if youve learned the basic concepts talked about thus far in the lectures. This assignment requires the use of classes, the last few assignments in this course will build upon the ideas used in this assignment.

Program

In this assignment, you will be responsible for making the ToDo class, You can reuse what you have done for assignment 9, but a number of the functions will not be required.

  • The class can contain whatever youd like! (implement it however youd like)
  • You will submit the Assignments entry point code (e.g A10.cpp with main(), and your ToDo.cpp and ToDo.h files)

Execution

The program asks the user for a task, and a priority

Creates a new ToDo object

  • Stores the added items in a collection
    • A vector is ok
    • A node based collection will grant up to 3 bonus marks

Keeps asking the user for a new task until a priority of <1 is given

  • No task is therefore added to the collection for this entry

Sorts the collection (by priority)

Provides an ordered (by priority) list of tasks they should complete.

Sample

Welcome to my ToDo Prioritization Program:
Enter a task that you must do, specify a priority of < 1 to stop
What is the task?
Import things
What is the priority of this task?
10
Enter a task that you must do, specify a priority of < 1 to stop
What is the task?
Assignment 10
What is the priority of this task?
3
Enter a task that you must do, specify a priority of < 1 to stop
What is the task?
Study for exam
What is the priority of this task?
4
Enter a task that you must do, specify a priority of < 1 to stop
What is the task?
Eat
What is the priority of this task?
1
Enter a task that you must do, specify a priority of < 1 to stop
What is the task?
What is the priority of this task?
-1
This is your tasklist, things you should do first are listed first:
1 Eat
3 Assignment 10
4 Study for exam
10 Important things
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.