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 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
You know the right answer?
7.2 Code Practice: Question 2
Instructions
Write a program to generate passwords. The...
Questions
question
Chemistry, 04.10.2020 21:01
question
Mathematics, 04.10.2020 21:01
question
Mathematics, 04.10.2020 21:01
question
Social Studies, 04.10.2020 21:01
question
Mathematics, 04.10.2020 21:01
Questions on the website: 13722367