menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Write a pseudocode algorithm that asks a user for a password. They are allowed three attempts to type the correct password, which is “Tues1212”. If they type the correct passwor…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Write a pseudocode algorithm that asks a user for a password. They are allowed three attempts to type the correct password, which is “Tues1212”. If they type the correct passwor…
asked
Nov 25, 2024
187k
views
2
votes
Write a pseudocode algorithm that asks a user for a password. They are allowed three attempts to type the correct password, which is “Tues1212”. If they type the correct password, output “Password accepted”, otherwise output “Password rejected”.
Computers & Tech
high-school
Nitrogen
asked
by
Nitrogen
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
1. Set the variable "attempts" to 0.
2. Set the correct password as "Tues1212".
3. While "attempts" is less than 3:
a. Prompt the user to enter a password.
b. Read the user's input into a variable "userPassword".
c. If "userPassword" is equal to the correct password:
i. Output "Password accepted."
ii. Exit the loop.
d. Else:
i. Output "Password rejected. You have X attempts remaining."
ii. Increment "attempts" by 1.
4. If "attempts" reaches 3:
a. Output "You have exceeded the maximum number of attempts. Access denied."
JonMayer
answered
Nov 30, 2024
by
JonMayer
8.8k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 23, 2024
35.9k
views
CODEHS Exercise 7.8.2 Usernames and Passwords: Pseudocode Using the AP style pseudocode, write a program that displays a list of 5 usernames. The program will then ask the user to create a password for
Cubez
asked
Jun 23, 2024
by
Cubez
8.0k
points
Computers & Tech
high-school
1
answer
1
vote
35.9k
views
asked
Aug 11, 2024
128k
views
Write a pseudocode algorithm using a FOR loop to read five lowercase letters and output the largest and smallest. (a is less than b).
Fjott
asked
Aug 11, 2024
by
Fjott
7.8k
points
Computers & Tech
high-school
1
answer
3
votes
128k
views
asked
Dec 4, 2024
209k
views
What is the difference between pseudocode and algorithm? a) Pseudocode is a description of what code should do, while the algorithm is the sequence of steps to solve a problem. B) Pseudocode is used for
Mythago
asked
Dec 4, 2024
by
Mythago
8.6k
points
Computers & Tech
high-school
2
answers
5
votes
209k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty