subject

7.2 Code Practice: Question 2
Instructions
Write a program to generate passwords. The program should ask the user for a phrase and number, and then create the password based on our special algorithm. The algorithm to create the password is as follows: If the user’s input word is less than 8 characters, output Password not long enough. If the user’s input word is greater than or equal to 8 characters, do the following: Replace e with @ Replace s or S with $ Replace t or T with + Capitalize the word and add the number to the end.
Sample Run 1 Enter your word: zebras Enter a number: 62
Password not long enough.
Sample Run 2 Enter your word: newyorkcity Enter a number: 892
Password: [email protected]+y892

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Which is a false statement considering copyright law? a. when people upload something to the internet they automatically receive a copyright for the work b. the work does not have to contain a copyright notice to be considered having a copyright c. copyright is legal term describing rights given to the creators for literary and artistic works d. personal pictures are always covered by copyrights
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
You know the right answer?
7.2 Code Practice: Question 2
Instructions
Write a program to generate passwords. The...
Questions
question
Mathematics, 25.04.2021 21:20
question
Biology, 25.04.2021 21:20
question
Social Studies, 25.04.2021 21:20
question
Mathematics, 25.04.2021 21:20
question
Mathematics, 25.04.2021 21:20
Questions on the website: 13722359