Assignment 3: Caesar Shift Cipher: shift the letters in a secret message forward
ID: 3855804 • Letter: A
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, 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!