- Program 1 Password Policy Program Checker 10pts Create A Program That Prompts The User To Enter And Set A Valid Password 1 (46.68 KiB) Viewed 39 times
Program 1 Password Policy Program Checker 10pts Create a program that prompts the user to enter and set a valid password
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Program 1 Password Policy Program Checker 10pts Create a program that prompts the user to enter and set a valid password
Program 1 Password Policy Program Checker 10pts Create a program that prompts the user to enter and set a valid password. Create a variable: string password; Prompt the user to set a password that is 8 characters or more in length; and contains at least 1 number and at least one uppercase. If the password does not meet the Criteria, output: Password does not meet the criteria, try again. Password should be a characters in length, at least 1 uppercase and at leas t 1 number. If the password meets the criteria, output: Congratulations password has been set! Test, by typing an incorrect password 8 times, and set the password at the 9th entry, sample output: Enter a password that contains at least 1 uppercase, and 1 number. The password should be 8 characters in length: Sally2 Password does not meet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be 8 characters in length: salli8 Password does not meet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be 8 characters in length: sally. Password does not meet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be a characters in length: Sall Password does not meet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be a characters in length: Sallyl Password does not neet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be 8 characters in length: Ben122 Password does not meet the criteria, try again! Enter a password that contains at least 1 uppercase, and 1 number. The password should be a characters in length: Dante123 Congratulations, password Dante123 has been set