Question: By using C++ A Caesar shift is one of the oldest forms of encryption. It was originally implemented by using two strips of paper with
A Caesar shift is one of the oldest forms of encryption. It was originally implemented by using two strips of paper with the alphabet written on them. One of the strips was then shifted a certain number of spaces over. For example, a shift of 3 would change the letter A to 'D, 'B' to 'E', and so on. Z would shift back around to C This assignmen will allow the user to enter a message of up to it by shifting it 4 characters over, and decode it again NOTE: There is extra credit that allows earning up to credit section 200 characters, we will then encode on this assignment. Refer to the extra Requirements: . Declare two constant integers in the global space Name the first one SIZE and initialize it to a value of 200 Name the second one SHIFT and initialize it to a value of 4 . Declare two functions, one to encode and the other to decode the message . The message must be stored in an array of characters, which must be declared in your main function. The size of this array is SIZE . The message must be converted to upper case - You are only expected to encode and decode letters, not numbers or symbols . When is the user is done typing the message, they will hit the enter key. That keystroke is not to be saved to the array . A sample run of your program should look like: Please enter a message (200 character limit): zip zap zooey ZIP ZAP ZOOEY DMT DET DSSIC ZIP ZAP ZOOEY Hints
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
