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 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 10:20
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
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
History, 30.01.2020 09:46
Questions on the website: 13722363