subject

Today we will be making a caesar cipher to encrypt and decrypt messages. a caesar cipher is a simple cipher that translates one letter to another via shifting the letter a few spaces in the alphabet. for example: a caesar cipher with a shift of 3 would turn a into d, b into e, c into f, and so on. your task is to use string methods and two user defined functions (an encrypt function and a decrypt function) to produce an encrypted message from a "plaintext" message and a "plaintext" message from an encrypted message. the program should use a menu such as: 1. encrypt2. decrypt3. exitthe menu should be displayed in a loop until the user chooses to exit. when the user chooses the encrypt option, your program should prompt the user to input a "plaintext" string. then the program should display what the encrypted text would be. when the user chooses the decrypt option, your program should prompt the user for an encrypted message and then display the "plaintext" version of that message to the user. for this program each message should be a single word and your cipher should use a shift of 3.any message entered by the user should be capitalized using a user defined function that will take a string in by reference and use the toupper() function from to capitalize each letter of the string.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
You know the right answer?
Today we will be making a caesar cipher to encrypt and decrypt messages. a caesar cipher is a simple...
Questions
question
Mathematics, 24.05.2021 04:40
question
English, 24.05.2021 04:40
question
French, 24.05.2021 04:40
question
Mathematics, 24.05.2021 04:40
question
Chemistry, 24.05.2021 04:40
question
Spanish, 24.05.2021 04:40