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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started