Question: please do it in python 5. Cryptography 1: Create a program that takes in a string and encodes the string as follows: Every digit in
please do it in python
5. Cryptography 1: Create a program that takes in a string and encodes the string as follows: Every digit in the string is replaced with the digit +1 except for 9 which is replaced by 0, every letter is replaces by the letter right after it except for z which is replaced by a, every period is replaced by a comma, every comma is replaced by a question mark, and every question mark is replaced by a period. All other characters must remain unchanged. This program should translate upper case to upper case and lower case to lower case. The program should print out the encoded string when it is done. 6. Cryptography 2: Write a program that deciphers (or undoes) what the previous program outputs. (HINT: When you are done, you should be able to input a string into Cryptography 1 and then take the output as input into Cryptography 2 and get your original string back)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
