Question: please help me out. A simple substitution cipher can be created by shifting a letter n positions in alphabetic order. For example, if the possible

please help me out.

A simple substitution cipher can be created by shifting a letter n positions in alphabetic order. For example, if the possible characters are the list [AZaz], a shift of three would translate A to D and Z to c. The shift is circular so z would shift around to C. The shift value, n, can be positive or negative.

Write c/c++ program that performs this simple substitution cipher. Your c/c++ program should request the user to enter a shift value, followed by one alphabetic character. It should then print the cipher text for that character. Print an appropriate error message if the user enters something other than a letter from the list [AZaz].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!