Saturday 7 December 2013

Program to check the "PASSWORD" is Correct or Incorrect!

Hey Guys! Today i am gonna show you the program which checks whether the password you entered is correct or incorrect based on some conditions applied.
1.)The Password must be of atleast 8 characters
2.)The Password should not contain Special Chracters
3.)The Password should contain atleast of two digits.

NOTE: The program is commented Line-by-Line for users consent..If still there is any problem,you are free to ask in comments.

a.) The following is the function which checks all the condtions and returns the values to the main function accordingly.


b.) The following Screenshot is of the functions which checks "Length of the password","Presence of Special Characters in password" and "Digits in the Password" Respectively.


c.)The following is the screenshot of the MAIN() where the program gets executed and ends.



Hope that you might have liked the post!

No comments:

Post a Comment