Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ollow these steps. - In this task, you will be creating a program for a small business that can help it to manage tasks assigned

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
ollow these steps. - In this task, you will be creating a program for a small business that can help it to manage tasks assigned to each member of the team. Copy the template program provided, Task19template.py, and rename it task_manager.py in this folder. This template has been provided to make this Task a little easier for you. Your job is to open and then modify the template to achieve the rest of the compulsory Task set out below. Remember to save your work as you go along. - This program will work with two text files, user.txt and tasks.txt. Open each of the files that accompany this project and take note of the following: tasks.txt stores a list of all the tasks that the team is working on. Open the tasks.txt file that accompanies this project. Note that this text file already contains data about two tasks. The data for each task is stored on a separate line in the text file. Each line includes the following data about a task in this order. - The username of the person to whom the task is assigned. - The title of the task. - A description of the task. - The date that the task was assigned to the user. - The due date for the task. - Either a 'Yes' or 'No' value that specifles if the task has been completed yet. user.txt stores the username and password for each user that has permission to use your program (task_manager.py). Open the user.txt file that accompanies this project. Note that this text file already contains one default user that has the username, 'admin' and the password, 'admin'. The username and password for each user must be written to this file in the following format: - First, the username followed by a comma, a space and then the password. - One username and corresponding password per line our program should allow your users to do the following: Login. The user should be prompted to enter a username and password. A list of valid usernames and passwords are stored in a text file called user.txt. Display an appropriate error message if the user enters a username that is not listed in user.txt or enters a valid username but not a valid password. The user should repeatedly be asked to enter a valid username and password until they provide appropriate credentials. The following menu should be displayed once the user has successfully logged in: Please select one of the toliowing optiong: z- register user a - add task va - vien all tasks vm - View my tasks e - exit If the user chooses ' r ' to register a user, the user should be prompted for a new username and password. The user should also be asked to confirm the password. If the value entered to confirm the password matches the value of the password, the username and password should be written to user.txt in the appropriate format. If the user chooses ' a ' to add a task the user should be prompted to enter the username of the person the task is assigned to, the title of the task, a description of the task and the due date of the task. The - If the user chooses 'va' to view all tasks, display the information for each task on the screen in an easy to read format. - If the user chooses ' Vm ' to view the tasks that are assigned to them, only display all the tasks that have been assigned to the user that is currently logged-in in a user-friendly, easy to read manner. Compulsory Task Part 2 1. Now format your program so that: a. Only the user with the username 'admin' is allowed to register users. b. The admin user is provided with a new menu option that allows them to display statistics. When this menu option is selected, the total number of tasks and the total number of users should be displayed in a user-friendly manner. "Capstone template project for FCS Task 19 Compulsory task 1. This template provides a skeleton code to start compulsory task 1 only. Once you have successfully implemented compulsory task 1 it will be easier to add a code for compulsory task 2 to complete this capstone" \#======importing libraries============ "This is the section where you will import libraries" ' \#====Login Section==== "Here you will write code that will allow a user to login. - Your code must read usernames and password from the user.txt file - You can use a list or dictionary to store a list of usernames and passwords from the file. - Use a while loop to validate your user name and password. while True: \#presenting the menu to the user and \# making sure that the user input is coneverted to lower case. menu = input("'select one of the following Options below: r ?gistering a user c ing a task va - View all tasks task.txt and - You must remember to include the 'No' to indicate if the task is complete. elif menu == 'va': pass "In this block you will put code so that the program will read the task from task.txt file and print to the console in the format of Output 2 presented in the L1T19 pdf file page 6 You can do it in this way: - Read a line from the file. - Split that line where there is comma and space. - Then print the results in the format shown in the Output 2 in L1T19 pdf - It is much easier to read a file using a for loop. elif menu ==vm ': pass 'In this block you will put code the that will read the task from task.txt file and print to the console in the format of Output 2 presented in the L1T19 pdf You can do it in this way: - Read a line from the file - Split the line where there is comma and space. the - Check if the username of username you have read from the file. - If they are the same you print the task in the format of output 2 shown in L1T19 pdf elif menu ==e

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Database Question Translate ER into Relations

Answered: 1 week ago