Question: In C++ Recursive Functions Problem B: Write a C++ program that encrypts a word using a RECURSIVE function. (20 points) For this problem, you are
In C++ Recursive Functions


Problem B: Write a C++ program that encrypts a word using a RECURSIVE function. (20 points) For this problem, you are to create a C+ program that reads in word, encrypts the word using a recursive function, and outputs encrvpted word to the console.The recursive function you design, implement, and use in your program should encrypt the word using a simple Caesar cipher. While this is the same encryption scheme you implemented in the previous homework, homework 6- in this homew ork you are required to implement a recursive function to perform the encryption. According to Wikipedia (https:/len.wikipedia.org/wiki/Caesar_cipher), a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a right shift of 3, a would be replaced by d, b would become e and so on. The method is named after Julius Caesar, who used it in his private correspondence. An example run depicting how your program should behave is specified below Enter a word Fabulous Enter a shift value (num between 1 and 13, inclusive) 1 Shifted Word is: gbcvmpvt Enter 'Y' or 'y' to encrypt another word : y Enter a word: Super fluous! Enter a shift value (num between 1 and 13, inclusive) 13 Shifted Word is:fhere_syhbhf! Enter 'Y' or 'y' to encrypt another word : y Enter a word: Anaconda Enter a shift value (num between 1 and 13, inclusive) 6 Shifted Word is: gtgiutjg Enter'Y' or 'y' to encrypt another word: n CONSTRAINTS: Follow all the constraints implicitly specified in the example of program behavior shown above. You can assume that the user will input one word or fully connected phrase (e.g.. a fully connected phase has no spaces between words, such as Hello_There!). . .All alphabetic characters are transformed to lower case and then shifted . You can assume that the user always enters a shift value between 1 and 13 (inclusive)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
