Question: Write a program to determine if a simple substitution code is reversible for a given string. The program should ask the user for a sentence
Write a program to determine if a simple substitution code is reversible for a given string. The
program should ask the user for a sentence using input. The program should then encrypt the
string into a cipher, decode the cipher, and compare the result of the decode operation to the
original sentence. If the decoded cipher matches the original, then the operation is reversible on
the string. Otherwise, it is not reversible.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
