Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Username and password pairs are stored in a text file named accounts.txt. Populate the accounts.txt file with five unique credentials in the form of
Username and password pairs are stored in a text file named "accounts.txt". Populate the accounts.txt file with five unique credentials in the form of ":". When you run the program, you are prompted with "Username:" User must type in a username and press "Enter". The user is then prompted with "Password: The user must type in a password and press "Enter". The program checks the accounts.txt to look for the username and password pair of ":" If it exists, the program responds with "Welcome!". If it fails, the program responds with "Login Failed" and then presents the "Username:" prompt again. Watch the linked video for the expected behavior: https://drive.google.com/file/d/1CtE-jjD2VB-00C3BSe7HY6SP-MIEEZDN/view?usp=sharing Submit the Following (minimum 3 files): 2 points - README.txt file that contains instructions on how to run your program (e.g. programming language, dependencies, commands to execute the program) 8 points - accounts.txt file populated with usernames and passwords, and the program file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started