Code C Can this be done as a flowchart please? Detailed and clear This week’s exercise is to implement an encoder. When completed, your program should be able to accept a short sentence from the user and display an encrypted version of it. Encryption is a complex subject but we can implement a very simple example as follows
Code C
Can this be done as a flowchart please? Detailed and clear
This week’s exercise is to implement an encoder. When completed, your program should be able to accept a short sentence from the user and display an encrypted version of it. Encryption is a complex subject but we can implement a very simple example as follows. For simplicity, let us assume one case of letters throughout, say CAPITALS. We can use a substitution method to scramble a sentence and then use the reverse of this process to recover it. If we take two rows of the alphabet and shift the bottom row along a specified amount (our key), we can then read the letters in our sentence from the top row and use the substituted letter from the bottom row to form the encrypted sentence: 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 X Y Z A B C D E F G H I J K L M N O P Q R S T U V W In the example above, the key is 3, hence the second row is shifted by three characters along. Take, for instance, the sentence “HELLO”. Each letter of your message should be replaced by the letter in the alphabet that comes three letters before. For “HELLO” that would be: EBIIL
Step by step
Solved in 2 steps with 1 images