Question: Write a program that asks for a password and then verifies that it meets the stated criteria. 1. The password should be at least 6

Write a program that asks for a password and then verifies that it meets the stated criteria.

1. The password should be at least 6 characters long.

2. The password should contain at least 1 uppercase and at least 1 lowercase letter.

3. The password should have at least 1 digit

If it doesn't, the program should display a message telling the reason for Invalid Password. If password is entered in correct format display message "Correct Password"

Sample Input: test

Sample Output: Password must be at least 6 characters long. Given password is test.

Sample Input: ABc123

Sample Output: Correct Password. Given password is ABc123.

language is C

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!