Just started with the Substitution project.
It appears there is a close analogy between Substitution project and Scrabble lab.
In Scrabble lab, POINTS is an array that contains allotted value to the 26 alphabets. A = 1, B = 3...
In Substitution project: A will be alloted the first character entered by the user as plantext, B second character....
Am I correct? Here is my rough pseudocode:
Make two arrays as reference point:
Make two arrays based on key value for each character entered by the user in argv1. Say ntf...e
Suppose the user enters in plain text: Rajeev
R as first character will be checked in Array 1 and Array 2. Once R detected, corresponding value in Key 1 will be replaced.