Menu

[Solved]Write C Program Accepts User Name Password Program Throws Exception Password Less 6 Charac Q37217961

Write a C++ program that accepts a user name and password. Theprogram throws an exception if the password has less than 6characters or does not contain a digit. You must define aPasswordTooShort exception class and a DoesNotContainDigitexception class. The constructor for each class will accept asingle string object containing an error message. The correspondingcatch block will display the error message. The program will
repeatedly prompt for a password until a correct password isprovided. Display the message “Congratulations, you havesuccessfully logged in!” when a correct password is input.

You may put all of your code in a single cpp file.

Expert Answer


Answer to Write a C++ program that accepts a user name and password. The program throws an exception if the password has less than… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *