Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

What is the product of the following reaction

Answered: 1 week ago