Question: Having a secure password is a very important practice, when much of our information is stored online. Write a function that validates a new password,

Having a secure password is a very important practice, when much of our information is stored online.
Write a function that validates a new password, following 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.
n the body of your program, prompt the user for a password, and ask the user again in order to confirm
it. If the passwords dont match or the rules are not fulfilled, prompt again. It's okay to display the
password as it's typed.
Please enter your password: CS110rocks
Please confirm your password: Cs110rocked
The password does not match.
Please enter your password: CS110rocks
Please confirm your password: CS110rocks
Password Is valid !

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 Programming Questions!