Stage 4: Add code to implement command 3. All allowed decryptions.
Prompt for and read a string to be decrypted. Display all 94 possible decrypted strings to the screen.
Your program must work with the printable ASCII character set. That is, all the characters from ASCII 32 (Space) to
ASCII 126 (~). When the offset points to a character beyond 126 it should wrap around to the beginning of the set.
If the offset is 4 and the character is ‘}’ (ASCII 125) then it will encrypt to ASCII 129. This is beyond 126 so wrap back
to the beginning by subtracting the total number of characters (95). This gives character 34. Similarly when
decrypting, if the subtracted offset results in a number less than 32 then add 95 to the result.
Aug 12th, 2015
Did you know? You can earn $20 for every friend you invite to Studypool!