The Caesar Cipher is a simple encryption algorithm where the alphabet is shifted or scrambled in some way. For this problem, the alphabet will just be shifted to the right by a certain number of spaces.
Sample Input Argument 1 (the plaintext to encrypt)
CATDOG
Sample Input Argument 2 (the shift amount)
3
In this case, the substitution chart would look like this:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
DEFGHIJKLMNOPQRSTUVWXYZABC
Expected Result (the encrypted text)
FDWGRJ
Guidelines
Argument 1 CATDOGArgument 2 3Expected Output FDWGRJ
Argument 1 ENGINEERMANArgument 2 7Expected Output LUNPULLYTHU
Argument 1 URCODEISBADArgument 2 22Expected Output QNYKZAEOXWZ