Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A company's security team has asked employees to change their password for all the applications / software they are using each quarter for security reasons.
A company's security team has asked employees to change their password for all the applicationssoftware they are using each quarter for security reasons.
You are asked to create software that takes employee input as a list of passwords and checks if each password is strong or not. If a password is strong, the
software shows 'true'. If a password is not strong it shows 'false'.
A password is considered strong if the below conditions are satisfied:
It has at least characters.
It concains at least one lowercase letter.
It concains at least one uppercase letter.
It contains at least one digit.
It does not contain of the same characters in adjacent positions ie "aab" violates this condition, but "aba" does not
Write an algorithm to print ue for each strong password and 'false' for each password that is not strong, from the given list of passwords.
Input
The first line of input consists of an integer passwordsize, representing the number of applicationssoftware that are being used by the employee N
The next line consists of spaceseparated string representing the passwords for the applicationssoftware
Output
Print spaceseparated strings consisting of 'true' if the password is strong and 'false' if it is not strong.
Example
Input:
paSui pasWord# @ystA pA$$
Outpuc
true true false false
Explanation:
pAs are not strong passwords, as GystA contains only characters and pA$ doesn't contain any digits and only has characters.
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