Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write this problem using C 1- Write a program to read a string named password of max size 19. You are going to check the
Write this problem using C
1- 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 punctuationStep 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