Question: c++ please! Question 1 In cryptography, Caesar cipher is one of the simplest encryption techniques. The key idea of this method is to replace each

c++ please! Question 1 In cryptography, Caesar cipher is one of the simplest encryption techniques. The key idea of this method is to replace each plaintext letter with one fixed number of places down the alphabet. Below is an example with a shift of five:

Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Cipher: FGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDE

To cipher a string, A is replaced by F, B is substituted by G, and so on.

To decode a string, A is replaced by v, etc.

Write a program that takes a string: M Go Blue Beat Ohio State as an input in main. Main allocates a 2 dimensional array, long enough to hold the string above. It moves the message above into the first row. It then passes the array (by reference) and the length of the array to a function called encode. Encode will encode the characters in the first row and place them in the second row and return. Main will print out the original content, then the encoded content directly under the original content. Take a screenshot.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!