Question

Username and password verification with infinite while loop

javascript


Write an infinite while loop that asks the user for their username and password. the loop only stops if the username and password for the user are correct. there  2 users or more.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Username and password verification with infinite while loop
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Write an infinite while loop that asks the user for their username and password. The loop...

    Write an infinite while loop that asks the user for their username and password. The loop only stops if the username and password for the user are correct. There are only 2 users: the first user’s username is user123 and their respective password is passwrd1, the second user’s username is user234 and their respective password is passwrd2. Expected output/input when loop is to stop: Enter username: user123 Enter password: passwrd1 Welcome user123 !Expected output/input when loop continues:Enter username: user234 Enter...

  • Write a code using python that simulates a Registration of a Username and Password with the...

    Write a code using python that simulates a Registration of a Username and Password with the following conditions the user can set its username display "Input username" input Username display "Input Password" input Password The password must be at least 5 characters and no longer than 10 characters if the password doesn't follow this instructions Display "Can't accept this password" once the password its stored Verify that the program works by Testing it input username Input Password The user has...

  • in python 5.23 Login Create a program that prompts the user for a username and password....

    in python 5.23 Login Create a program that prompts the user for a username and password. The correct username should be python and the correct password should be csci 135. See below for example output. (Different messages depending on if user name or password are correct.) Only allow the user to make 3 attempts. Welcome to my secret program! Please enter your username: Trish Please enter your password: Duce Invalid username and password Please enter your username: Trish Please enter...

  • Write a C++ program which accepts username and password from user and then print on the...

    Write a C++ program which accepts username and password from user and then print on the screen whether the user is authenticated or not. Also, upon entering the wrong credentials (username and password) three times, the program must exit. The program must print the appropriate messages if the user enters wrong username or password.

  • Retrieve the HTML elements for username, password and password2 by adding the following: • var username...

    Retrieve the HTML elements for username, password and password2 by adding the following: • var username = document.getElementById('username'); • var password = document.getElementById('password'); var password2 - document.getElementById('password2'); Task 4: Check if password1 and password 2 match (2 points) Write if-else statements to check if passwords 1 and 2 match. Register an account Username johndoe • If they do not match you should call the function showError like this: showError(password2, "Passwords do not match"); • If they match, you should call...

  • Please create a java program and use a do/while loop to check for the correct password...

    Please create a java program and use a do/while loop to check for the correct password entered by the student. The password should be your initials and 2020Mar23. For example, my password would be "TJC2020Mar23". If the user has not entered the correct password after 3 attempts, they should receive a message to that effect and they should not be allowed any further attempts.

  • Write a C++ program to allow an user to enter username and password, and then compare...

    Write a C++ program to allow an user to enter username and password, and then compare the entered values with the values which stored in a file called login.txt. Display an message "Login successful" if the values are matched, otherwise display "Login fail!. This program allow the user to have three times of tries, if exceeded the number of times, display a message "Number of times is exceeded, please contact administrator (Assume, the stored username is "INTI-IU and password is...

  • In C , checks if the entered password for admin is correct by calling checkAdminPassword. Part...

    In C , checks if the entered password for admin is correct by calling checkAdminPassword. Part of this function has been implemented, complete the statement in if(). Keep in mind that the entered password is plaintext whereas the password in struct user is in the hashsed form. The password for user admin is “s#1Pa5”. int checkAdminPassword(char* password, struct user* users, int count) { for (int i = 0; i < count; ++i) { if (strcmp((users + i)->username, "admin") == 0)...

  • 2. Write a PHP program that will display a form containing two fields: username and password,...

    2. Write a PHP program that will display a form containing two fields: username and password, a submit button. Upon submission of the form, check the validity of the username and password. Display a welcome message if the username and password is valid else displays any error message. [3 Marks] e hp

  • Lab 3: Databased Admin Tool Python Objective: Develop an admin tool for username and password management. You will need...

    Lab 3: Databased Admin Tool Python Objective: Develop an admin tool for username and password management. You will need to use the best data structure to store the data you read from UD.txt for efficient processing. You can accomplish these tasks with Dictionary or List. The data file (UD.txt) : FIRST NAME, LAST NAME,USERNAME,PASSWORD Sam, DDal,sdd233,Pad231 Dave,Dcon,dcf987, BHYW4fw Dell,Grant,dgr803,Sb83d2d Mike,Kress,mkr212,UNNHS322 Lisa,Kate,lki065,dgw6234 Paul,Edward,ped332,9891ds Youyou,Tranten,ytr876,dsid21kk Nomi,Mhanken,nmh223,3282jd3d2 Write a program that imports the database from UD.txt Give the following options: A: Search by...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT