Question: Implement a class, SubstitutionCipher, with a constructor that takes a string with the 26 uppercase letters in an arbitrary order and uses that as the
Implement a class, SubstitutionCipher, with a constructor that takes a string with the 26 uppercase letters in an arbitrary order and uses that as the encoder for a cipher (that is, A is mapped to the first character of the parameter, B is mapped to the second, and so on.) You should derive the decoding map from the forward version.
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
class SubstitutionCipher constructoralphabet thisalphabet alphabet thisdecoder new Map ... View full answer
Get step-by-step solutions from verified subject matter experts
