Write a program to help a user automate their to-do list. The program should do the following: Show the user the different actions they can perform on the list (add, remove tasks, display task...). Allow the user to select one of the actions. Execute that action The to-do list will be read from the file:   Name of the task                      Due date (mm dd yyyy)         Priority Learn basic Python                   12 12 2021                                 3 Implement a snake game        04 01 2021                                1 Clean up my room                    01 10 2021                                2 Build my resume                      12 12 2021                                 3 Study for the exam                   03 05 2021                                1 Learn how to juggle                  05 06 2022                                3 Create a website using React     12 07 2021                             2 Have a tea and self-reflect         03 01 2021                             2   Modify the existing code. Use an array, tasks, of the struct Task, with three components: name of the type string or character array, dueDay, dueMonth, dueYear of type int, isCompleted of type bool, and priority of type int. Your program must contain at least the following functions: (20 points) Function getData: This function loads the data from a file named tasks.txt with the above items into the array tasks. Function viewTasks: This function shows the list of all to-do items with due date and status. (20 points) Function addTasks: This function will add one new task to the to-do list. If no more space displays a message “No more space”. (20 points) Function completeTask: This function will mark the chosen task as completed. (20 points) Function removeTask: This function will remove one task from the list. (10 points) Function sortTasks: This function will sort the list by dueDate. (extra credit) (10 points) Function modifyTasks: This function will modify a selected task. (extra credit) (20 points) Function taskSummary: This function displays the number of tasks in the to-do list and the percentage of tasks completed

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a program to help a user automate their to-do list. The program should do the following:

  1. Show the user the different actions they can perform on the list (add, remove tasks, display task...).
  2. Allow the user to select one of the actions.
  3. Execute that action

The to-do list will be read from the file:

 

Name of the task                      Due date (mm dd yyyy)         Priority

Learn basic Python                   12 12 2021                                 3

Implement a snake game        04 01 2021                                1

Clean up my room                    01 10 2021                                2

Build my resume                      12 12 2021                                 3

Study for the exam                   03 05 2021                                1

Learn how to juggle                  05 06 2022                                3

Create a website using React     12 07 2021                             2

Have a tea and self-reflect         03 01 2021                             2

 

Modify the existing code. Use an array, tasks, of the struct Task, with three components: name of the type string or character array, dueDay, dueMonth, dueYear of type int, isCompleted of type bool, and priority of type int. Your program must contain at least the following functions:

  • (20 points) Function getData: This function loads the data from a file named tasks.txt with the above items into the array tasks.
  • Function viewTasks: This function shows the list of all to-do items with due date and status.
  • (20 points) Function addTasks: This function will add one new task to the to-do list. If no more space displays a message “No more space”.
  • (20 points) Function completeTask: This function will mark the chosen task as completed.
  • (20 points) Function removeTask: This function will remove one task from the list.
  • (10 points) Function sortTasks: This function will sort the list by dueDate. (extra credit)
  • (10 points) Function modifyTasks: This function will modify a selected task. (extra credit)
  • (20 points) Function taskSummary: This function displays the number of tasks in the to-do list and the percentage of tasks completed

 

Sample output is:

 

Summary of Johnny’s To-Do List

Total number of tasks                8

Percentage completed               25%

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY