Question

In: Computer Science

Search the web to discover the ten most common user-selected passwords, and store them in an...

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 )

Solutions

Expert Solution

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:


Related Solutions

Social bookmarking is a way for people to store, organize, search and manage “bookmarks” of web...
Social bookmarking is a way for people to store, organize, search and manage “bookmarks” of web pages.  Explain how this can benefit an entrepreneur.
Reusable Passwords The most common authentication credential is the reusable password, which is a string of...
Reusable Passwords The most common authentication credential is the reusable password, which is a string of characters that a user types to gain access to the resources associated with a certain username (account) on a computer. These are called reusable passwords because the user types the password each time he or she needs access to the resource. Unfortunately, the reusable password is the weakest form of authentication, and it is appropriate only for the least sensitive assets.Ease of Use and...
Ten people take off their left and right socks and put them in a common bag....
Ten people take off their left and right socks and put them in a common bag. Each person then takes out two random socks from the bag (without replacement). What is the expected number of people who recover both their socks?
Write a C program that asks the user to enter 15 integer numbers and then store them in the array.
Write a C program that asks the user to enter 15 integer numbers and then store them in the array. Then, the program will find the second largest element in array and its index without sorting the array. For example, In this array {-55,-2,1, 2, -3, 0, 5, 9, 13, 1, 4, 3, 2, 1, 0}, the second largest element is 9 [found at index 7].
Customer reviews are now a common feature of consumer Web sites, most notably, Amazon. How do...
Customer reviews are now a common feature of consumer Web sites, most notably, Amazon. How do private sector Web sites keep outrageous and/or malicious comments off their product review pages (or discourage such comments from being posted)? Do a search on “Amazon General Review Creation Guidelines” and consider how these techniques could be used by the CPSC.
What are the most common molecular structures found in the bacterial cytoplasm? Describe them, their roles...
What are the most common molecular structures found in the bacterial cytoplasm? Describe them, their roles and give examples of their function. What are the major hypotheses for the origin of viruses? Describe these hypotheses in detail. What evidence exists that supports or does not support these hypotheses?
Creatine and protein are common supplements in most bodybuilding products. Bodyworks, a nutrition health store, makes...
Creatine and protein are common supplements in most bodybuilding products. Bodyworks, a nutrition health store, makes a powder supplement that combines creatine and protein from two ingredients (X1 and X2). Ingredient X1 provides 20 grams of protein and 5 grams of creatine per pound. Ingredient X2 provides 15 grams of protein and 3 grams of creatine per pound. Ingredients X1 and X2 cost Bodyworks $5 and $7 per pound, respectively. Bodyworks wants its supplement to contain at least 30 grams...
Creatine and protein are common supplements in most bodybuilding products.  Bodyworks, a nutrition health store, makes a...
Creatine and protein are common supplements in most bodybuilding products.  Bodyworks, a nutrition health store, makes a powder supplement that combines creatine and protein from two ingredients (X1 and X2). Ingredient X1 provides 20 grams of protein and 5 grams of creatine per pound.  Ingredient X2 provides 15 grams of protein and 3 grams of creatine per pound.  Ingredients X1 and X2 cost Bodyworks $5 and $7 per pound, respectively.  Bodyworks wants its supplement to contain at least 30 grams of protein and 10...
What is FIDIC? Compare between FIDIC and JCT? -Most common between them -when should be used....
What is FIDIC? Compare between FIDIC and JCT? -Most common between them -when should be used. -Give me term and condition of each one.
1. Claim: most adults do not have hypertension. When 983 randomly selected adults were tested, it was found that 70.9% of them do not have hypertension.
  1. Claim: most adults do not have hypertension. When 983 randomly selected adults were tested, it was found that 70.9% of them do not have hypertension.                a.) express the original claim in symbolic form                b.) identify the null and alternative hypothesis                c.) find the z statistic 2. One of Mendel’s famous genetics experiments yielded 580 peas, with 428 of them green and 152 yellow.                a.) find a 95% confidence interval estimate of the percentage of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT