Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

Students also viewed these Databases questions