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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started