Menu

Please Write C Program Check Password Print Violations Secure Password Please Print Congra Q43788885

Please write a C++ program to check a password and print all theviolations of a secure password. Please print “Congratulations!Your password is very secure!” if there is no violation found forthis password.

All the possible 10 violations are asfollows:

  1. Your password is not secure since it has less than 2 upper-caseletters.
  2. Your password is not secure since it has less than 2 lower-caseletters.
  3. Your password is not secure since it has less than 7characters.
  4. Your password is not secure since it has less than 2digits.
  5. Your password is not secure since it has more than 12characters.
  6. Your password is not secure since it contains space.
  7. Your password is not secure since it contains only digits.
  8. Your password is not secure since it contains onlyalphabets.
  9. Your password is not secure since it contains none of 6 specialsymbols: $ % @ ! ? *
  10. Your password is not secure since it contains 2020, 2019, 2018,or 2017.

You must test your program 3 times with outputs of 3 test casesshown on your report. The output of your test case#1 must look as follows:

Welcome to the program of “your name

Please enter a password (Enter q to quit): ab

The password you just entered is a b

Your password is not secure since it has less than 2 upper-caseletters.

Your password is not secure since it has less than 7characters.

Your password is not secure since it contains space.

Your password is not secure since it has less than 2 digits.

Your password is not secure since it contains none of 6 specialsymbols: $ % @ ! ? *

Your password has the above 5 problems to be fixed.

Please enter a password (Enter q to quit):2020

The password you just entered is 2020

Your password is not secure since it contains 2020, 2019, 2018,or 2017.

Your password is not secure since it has less than 2 lower-caseletters.

Your password is not secure since it has less than 2 upper-caseletters.

Your password is not secure since it has less than 7characters.

Your password is not secure since it contains only digits.

Your password is not secure since it contains none of 6 specialsymbols: $ % @ ! ? *

Your password has the above 6 problems to be fixed.

Please enter a password (Enter q to quit):PW$2015ok

The password you just entered is PW$2015ok

Congratulations! Your password is very secure!

Please enter a password (Enter q to quit):MrLo1234

The password you just entered is MrLo1234

Your password is not secure since it contains none of 6 specialsymbols: $ % @ ! ? *

Your password has the above 1 problems to be fixed.

Please enter a password (Enter q to quit):

The password you just entered is  

Your password is not secure since it has less than 2 lower-caseletters.

Your password is not secure since it has less than 2 upper-caseletters.

Your password is not secure since it has less than 7characters.

Your password is not secure since it contains space.

Your password is not secure since it has less than 2 digits.

Your password is not secure since it contains none of 6 specialsymbols: $ % @ ! ? *

Your password has the above 6 problems to be fixed.

Please enter a password (Enter q to quit): Password123OK$

The password you just entered is Password123OK$

Your password is not secure since it has more than 12characters.

Your password has the above 1 problems to be fixed.

Please enter a password (Enter q to quit):q

Thank you for playing this PASSWORD game. Hope to see youagain!

Expert Answer


Answer to Please write a C++ program to check a password and print all the violations of a secure password. Please print “Congratu…

OR