Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON PROGRAM The Program Spec Write a program using loops and functions that asks for a password, and then asks the user to confirm the

PYTHON PROGRAM

image text in transcribed

image text in transcribed

The Program Spec Write a program using loops and functions that asks for a password, and then asks the user to confirm the password chosen Your solution will verify that both user passwords entered match. Your program must also validate that the new password follows these rules: .The password must be at least 8 characters long .The password must have at least one uppercase and one lowercase letter The password must have at least one digit Re-prompt the user if either 1) the two passwords entered do not match or if 2) the password does not satisfy all the rules stated above Deliverable: yournameLab2.py Your source code solution and a copy of the run pasted into your source submission file. Be sure to comment out your run so that your .py file will still run in the grader test bed Input Error Checking: All user input is valid data. The two user input passwords do need to match each other. A password does need to be of a minimum length as specified in the spec. Your program does not need to test for an upper bound limit on the password length. Test Run Requirements: Submit one run that demonstrates at least one example of a password that does not meet each of the rules (expecting a minimum of 5 test cases; 3 demonstrating a password that does not satisfy the rules as well as a pair where the two passwords entered by the user do not match. Make sure that your run isolates each rule one test case at a time to verify that your program is validating the specific rule. Also, make sure you include at least one run that contains a valid password verification. Here are some other requirements: 1. Create constants versus using literals in your source code (i.e. for minimum password length 2. Include a function that checks whether a password is valid 3. Include a loop that will continue to prompt the user until a valid password is entered

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

=+C&B (especially taxation) laws, regulations, and practices?

Answered: 1 week ago