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)) ?((using the ascii values )) 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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

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))

?((using the ascii values ))

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

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning