The previous task of Capstone project 1 9 is connected to this task,please refer to it ,
Fantastic news! We've Found the answer you've been seeking!
Question:
The previous task of Capstone project is connected to this task,please refer to itand solve this one. Compulsory Task Follow these steps: Create a copy of your previous Capstone project taskmanager.py and save it in the Dropbox folder for this project. Also, copy and paste the text files usertxt and tasks.txt that accompanied the previous Capstone project to this folder. Modify this program as follows Modify the code of your previous project so that functions are used. Adding functions will improve the modularity of your code. Your program should include at least the following functions reg.user that is called when the user selects r to register a user. oddtask that is called when a user selects d to add a new task. viewall that is called when users type vo to view all the tasks listed in 'taskstxt'. viewmine that is called when users type vm to view all the tasks that have been assigned to them. Modify the function called reguser to make sure that you don't duplicate usernames when you add a new user to user.txt If a user tries to add a username that already exists in user.txt provide a relevant error message and allow them to try to add a user with different username. Add the following functionality when the user selects vm to view all the tasks assigned to them: Display all tasks in a manner that is easy to read. Make sure that each task is displayed with a corresponding number which can be used to identify the task. Allow the user to select either a specific task by entering a number or input to return to the main menu. If the user selects a specific task, they should be able to choose to either mark the task as complete or edit the task. If the user chooses to mark a task as complete, the YesiNo value that describes whether the task has been completed or not should be changed to Yes: When the user chooses to edit a task, the username of the person to whom the task is assigned or the due date of the task can be edited. The task can only be edited if it has not yet been completed. Add an option to generate reports to the main menu of the application. The menu for the admin user should now look something like this: Please gelect one of the folowing options: x regigter liser a add task va view all tasks vi view my tasks gr generate reports ds display gtatstics e exit When the user chooses to generate reports, two text files, called taskoverview.txt and useroverview.txt should be generated. Both these text files should output data in a userfriendly, easy to read manner. taskoverview.txt should contain: The total number of tasks that have been generated and tracked using the taskmanager.py The total number of completed tasks. The total number of uncompleted tasks. The total number of tasks that haven't been completed and that are overdue. The percentage of tasks that are incomplete. The percentage of tasks that are overdue. useroverview.txt should contain: The total number of users registered with taskmanager.py The total number of tasks that have been generated and tracked using the taskmanager.py For each user also describe: The total number of tasks assigned to that user. What percentage of the total number of tasks have been assigned to that user? What percentage of the tasks assigned to that user have been completed? What percentage of the tasks assigned to that user must still be completed? What percentage of the tasks assigned to that user have not yet been completed and are overdue?
Related Book For
College Physics
ISBN: 978-0495113690
7th Edition
Authors: Raymond A. Serway, Jerry S. Faughn, Chris Vuille, Charles A. Bennett
Posted Date: