Question: C programming HW-7 Due: May-07-2018 Write a program to read a string named password of max size 19. You are going to check the validity
C programming
HW-7 Due: May-07-2018 Write a program to read a string named password of max size 19. You are going to check the validity of this password such that it has: -minimum of 8 characters and maximum of 15 characters -both uppercase and lowercase characters -it should have at least two digits -it should have at least one punctuation character -the password should not start with a digit or punctuation character The code should be written in a loop that continuously ask the user to enter a different password until all the conditions are met. Each time the appropriate statement must be printed such as: -password too short -password too long -needs at least two digits -needs uppercase characters as well -needs lowercase characters as well -needs punctuation character -You may not start with digit or punctuation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
