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 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
You know the right answer?
7.2 Code Practice: Question 2
Instructions
Write a program to generate passwords. The...
Questions
question
Mathematics, 12.10.2019 04:30
question
Mathematics, 12.10.2019 04:30
question
Mathematics, 12.10.2019 04:30
Questions on the website: 13722362