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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:30, ninja12302
Some of the items below indicate the steps required to move a slide to a different location in a presentation. select those steps and indicate the order in which they should be performed to move the slide. (for example, if an item describes what you do first, select 1.) included in the list are items that are not part of the process. for these items, select n/a, an abbreviation for not applicable. 1 — first 2 — second 3 — third 4 — fourth 5 — fifth 6 — sixth n/a — not applicable drag the slide to the desired place. enter the slide position desired. hold the mouse button down. select move from the tools menu. select the slide. switch to the notes view.
Answers: 3
image
Computers and Technology, 23.06.2019 04:20, RandomLollipop
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
image
Computers and Technology, 24.06.2019 03:30, laylay120
Other - a written response, no less than arial 12-point font, to the following: of the following, which would you consider is most important to customer service goals? choose one and explain why. (1) accuracy (2) punctuality and attendance (3) courtesy (4) productivity (5) organization
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 in other subjects: