Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Password checker You are given a function: int CheckPassword ( char str [ ] , int n ) ; The function accepts string ' str
Password checker
You are given a function:
int CheckPasswordchar str int n;
The function accepts string str of size as an argument. Implement the function which returns if given string str is a valid password else str is a valid password if it satisfies the below conditions:
At least characters
At least one numeric digit
Atleast one capital letter
Must not have space or slash
Starting character must not be a number
Assumption:
The input string will not be empty.
Example
Input
aA
Output
Input format
Input is a string given by the user.
Output format
Output can be if the entered string is a valid password or if it is invalid.
Sample testcases
Input
aA
Output
Input
A
Output
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