Program 1 Password Policy Program Checker 10pts Create a program that prompts the user to enter and set a valid password
Posted: Mon Jul 11, 2022 9:55 am
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 8 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 8 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