Question: 1. Draw the flowchart for the following algorithm. Create the two lists below. Ask the user to login. First ask for their username. If

1. Draw the flowchart for the following algorithm. Create the two lists below. Ask the user to login. First

1. Draw the flowchart for the following algorithm. Create the two lists below. Ask the user to login. First ask for their username. If the username is in the usernames list ask for the password, otherwise print "username not found". If the password is in passwords list in the SAME INDEX as the username print "login successful". Otherwise print "wrong password". usernames = ["Bob", "Alice", "Tom"] passwords = ["password123", "catlover28", "Bananas!"] 2. Suppose we are given a list named A and we know that n is an element of A but we don't know what the index of n is. Research online for a way to obtain the index of element n. Write down one or two lines of code that you think are potential solutions.

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Flowchart of given algorithm 2 program index met... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!