Assignment 1.1A Year 9
Assignment 1.1A Year 9
1A
Name Date
This pseudocode algorithm should help a user to decrypt a message. When a letter is encrypted, it is
changed to a different character. Using this table here, the ‘p’ is replaced with a question mark (?). If you
don't know the code, you cannot read the message.
The code used is given in the table. The letter is in the first row and the encrypted character is in the
second row. For example, the letter ‘a’ is encrypted as the character ‘0’.
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 + - = / * ! ? \ # ( ) & % $ @ |
(Continued)
5 Change the algorithm to allow your two selected characters to be entered and the correct
symbol (? or !) to be output.
3