Question: Question 3) You are asked to process the data in the attached credentials.txt file. Complete the following steps: (40 marks) Download the file form here:

Question 3) You are asked to process the data in the attached credentials.txt file. Complete the following steps: (40 marks) Download the file form here: credential.txt

Step 1) Develop a program which searches for a username in the file and if it exists in the file, the program display its related password in the output.

Step 2) Develop a program which asks user to enter a new Username and password, and If the input username and password are valid, store them into the file. You need to validate the input data as follow: Ensure that the entered username is not start with a digit and its length is more than 5 characters. Ensure that password length is 6~14 characters Note: use the proper way of error/exception handling for the File IO operations. Submission: Submit al .py programs. Submit a MS-Word fiel which contains: the screenshot of your files in the editors + output of each program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!