Question: Problem Assume you are working as a programmer in a communication field. Your task is to alter the original data before transmitting because of a

Problem Assume you are working as a programmer in a communication field. Your task is to alter the original data before transmitting because of a security reason. All of their data is an integer that contains the number of digits between two and eight (inclusive), thus the possible integers are between 10 and 99999999. You have to read in an integer and complete the following stages Stage 1: Your task is to modify the data for transmission according to the following set of rules If the number is four digits or above the following rules apply Replace the first digit by the remainder after the sum of that digit plus 1 is divided by 10, the second digit by the remainder after the sum of that digit plus 2 is divided by 10, third digit by the remainder after the sum of that digit plus 3 is divided by 10, fourth digit by the remainder after the sum of that digit plus 4 is divided by 10 and so on Position of the number is counted from right to left Position 8 Position 2 Position 1 Once the encoding stages are over, write the codes to recover your original data from the encoded data ORIGINAL VALUE 2 4 POSITION READ FROM RIGHT TO LEFT ENCRYPTED DATA = (ORIGNAL DATA + DATA'S POSITION) % 10 ENCRYPTED VALUE 2 POSITION READ FROM RIGHT TO LEFT EXAMPLE (9+8)90 10.27
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
