URGENT NEED THUMBS DOWN COP  ? 2: Take the username and password from a user and check the validity of the  password using the following rules: 1.   Password must contain at least 2 digits, at least one uppercase  letter, at least one lowercase letter, and at least one of the special  characters (*,_,%,$,#,@) in it. If one or more of these are missing, show  which ones are missing. 2.   The password must not contain the username in it. If it does, the  password will be invalid. 3.   The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 6E
icon
Related questions
Question

URGENT NEED THUMBS DOWN COP 

? 2: Take the username and password from a user and check the validity of the  password using the following rules: 1.   Password must contain at least 2 digits, at least one uppercase  letter, at least one lowercase letter, and at least one of the special  characters (*,_,%,$,#,@) in it. If one or more of these are missing, show  which ones are missing. 2.   The password must not contain the username in it. If it does, the  password will be invalid. 3.   The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@12 Output2: Valid password Sample Input 3: Username: IzukuMidoriya Password: Ia4%Lp Output3: Invalid Password: Password too short Sample Input 4: Username: IzukuMidoriya Password: izuku@Midoriya24# Output4: Valid Password Sample Input 5: Username: IzukuMidoriya Password: Ia4%sahdvckgjp Output5: Invalid Password: Missing the following items: 1 more digit missing Uppercase letters Special Characters. 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage