write a C++ program that determines whether or not a password is good. A good password is defined such that it is at least 8 characters long and contains at least one uppercase letter, at least one lowercase letter, and at least one number. Write a program that reads a password from the user, if the user enters a bad password, your program should ask the user to enter a password again. Count and display the number of attempts that were needed before a good password was generated. ((without using islower and isupper)) Sample output: Enter a password:pass That isn't a good password, try again Enter a password:Password That isn't a good password, try again Enter a password:Password1 That's a good password. After 3 attempts
write a C++
that it is at least 8 characters long and contains at least one uppercase letter, at least one lowercase letter, and
at least one number. Write a program that reads a password from the user, if the user enters a bad password,
your program should ask the user to enter a password again. Count and display the number of attempts that
were needed before a good password was generated.
((without using islower and isupper))
Sample output:
Enter a password:pass
That isn't a good password, try again Enter a password:Password
That isn't a good password, try again Enter a password:Password1
That's a good password. After 3 attempts
Step by step
Solved in 3 steps with 3 images