subject

Write a program that uses a loop and a half to prompt a user for a password. You should prompt the user for the password. If they get it correct, break out of the loop. If they don’t get it correct, you should give them an error message and ask again. Sample Run:

Enter password: 123123
Sorry, that did not match. Please try again.
Enter password: password
Sorry, that did not match. Please try again.
Enter password: CODEHS
Sorry, that did not match. Please try again.
Enter password: abc123
You got it!
Note: You need to set SECRET to abc123 to run the tests

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:00, EhHannuh6865
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
image
Computers and Technology, 25.06.2019 04:30, tjjjjjjjjjjjjjjjjjjj
If you have watched pretty little liars(pll)what are the names of the main characters? all of them and the boyfriends and girlfriends too.
Answers: 2
image
Computers and Technology, 25.06.2019 08:00, alizeleach0123
A( the heart of an information system, is a collection of all relevant facts organized in a series of integrated files.
Answers: 1
image
Computers and Technology, 25.06.2019 15:10, isabellamoneill
Who should have a career portfolio, and how often should it be updated? only artists need a career portfolio, which they should update after every gallery show. everyone should have a career portfolio, which they should update daily with their professional activities. all students should have a career portfolio, which they should update ever semester until they graduate. most professionals need a career portfolio, which they should update with regularly with important achievements.
Answers: 3
You know the right answer?
Write a program that uses a loop and a half to prompt a user for a password. You should prompt the u...

Questions in other subjects:

Konu
Mathematics, 07.09.2021 18:00