Program 2 Password Checker 15pts (continues from Program 1) Instructions: Create a program that simulates a password che
Posted: Mon Jul 11, 2022 9:55 am
Program 2 Password Checker 15pts (continues from Program 1) Instructions: Create a program that simulates a password checker. Use the password that was set in the first part of the program, if the user enters the password correctly it will output Authentication Successful if the user does not answer the password correctly it will say Failed Attempt! Try again Attempt 1 Each failed attempt is recorded. Each time the user fails, output the number of that failed attempt. Enter the password: Failed Attempt! Try again Attempt 1 Enter the password: Failed Attempt! Try again Attempt 2 If the user fails 5 times output: Error! You have exceeded the number of attempts, try again? Y for "yes" or N for "No" The program should allow the user to try and enter the password again. The attempts should reset back to 0. Sample Rum Enter the password: password! Failed Attempt! Try again Attempt 1 Enter the password: password Failed Attempt! Try again Attempt 2 Enter the password: magicword Authentication Successful! FOR FAILED ATTEMPTS: Enter the password: password1 Failed Attempt! Try again Attempt 1 Enter the password: password2 Failed Attempt! Try again Attempt 2 Enter the password: password3 Failed Attempt! Try again Attempt 3 Enter the password: password4 Failed Attempt! Try again Attempt 4 Enter the password: password5 Error! You have exceeded the number of attempts, try again? Y for "yes" or N for "No"