Question: Assignment 3: Caesar Shift Cipher: shift the letters in a secret message forward in the alphabet a certain number of places. Example: shift 13 Hello,
Assignment 3: Caesar Shift Cipher: shift the letters in a secret message forward in the alphabet a certain number of places. Example: shift 13 Hello, Jack Uryyb, Wnpx Read the command line for an integer in argv[1] Run it through atoi() to convert the command line string to an integer: int shift = atoi(argv[1]) ; Remember that if you shift a letter off the end of the alphabet, we must "wrap around" so we come back in down by 'a'. Here's the pseudocode: read in a character c if (c is a letter ) { make c lowercase make c a number between 0 and 25 add the shift value to c mod c so it's between 0 and 25 again add a 'a' to c so it's a real ASCII letter again. } print c on the output // this happens for ALL input, not just letters! Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
