Programme Code : MCA
Course Code : mcs-011
| More

Year : 2013 Views: 712 Submitted By : rajina On 09th March, 2013

Do you have solution for this Question. If yes    I aslo want solution.

Q.


Write a program to crypt its input according to a specified transformation scheme. The transformation scheme will consist of two strings: a string of characters and then a string of replacement characters. The idea is that your program replaces every instance of the ith character in the initial string with the (i+2) character (of English alphabets) in the replacement string. When no substitution is defined for a character, the program just passes it through to the output unchanged. Blank spaces and the other symbols remains the same. The program should inform the user of any errors in the transformation scheme. Your program should display the phrase before and after the substitutions have been made.

Example:

Original String: I know C programming.

String after the transformation: K mpqy E rtqitcookpi.


No Answer Found