Question: There should be a user-defined function called authenticate that prompts the user to input a password and compares it to a stored password in your

There should be a user-defined function called authenticate that prompts the user to input a password and compares it to a stored password in your program (define the constant STORED_PASSWORD = "cs21" local to the function). The program should call the function show_menu if the user-input password matches (thus the user is authenticated). If the user-input password does not match, prompt the user to enter in their password again, however, display the message, That was 3 invalid attempts. You are locked out of the system. after their third attempt and quit the program. ? There should be a user-defined function called show_menu that displays the following message to the user, Welcome to the password-protected system. ? There should be a main function that calls the authenticate function ? Be sure your functions are documented and use appropriate variable naming conventions (in python )

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!