In: Computer Science
Search the web to discover the ten most common user-selected passwords, and store them in an array.
-Draw a flowchart and pseudocode for a program that prompts a user for a password, and continue to prompt the user until the user has not chosen one of the common passwords.
Make a working version of this program in Python. ( need correct code )
PSEUDOCODE:
Function Main
Declare String Array pwds[10]
Assign pwds =
["123456","123456789","Qwerty","Password","111111","12345678","Abc123","1234567","Password1","1234567890"]
While 1
Input guess
If guess in pwds
Break
False:
Input guess
End
End
End
FLOWCHART:
NOTE: THE FLOWCHART IS JUST FOR DEMONSTRATION OF WORKFLOW
SCREENSHOT OF CODE:
CODE:
pwds = ["123456","123456789","Qwerty","Password","111111",
"12345678","Abc123","1234567","Password1","1234567890"]
guess = input("Enter a password: ")
while 1:
if guess in pwds:
break;
else:
guess = input("Enter a password: ")
OUTPUT: