Computer Science, asked by hiteshroy102, 11 months ago

In certain coding system 'ganga' is coded as 'djndj'.How will you code 'watch'

Answers

Answered by monika4875
4

Explanation:

code:

  1. w-s
  2. a-j
  3. t-t
  4. c-a
  5. h-o
Answered by hotelcalifornia
13

Answer:

WATCH is coded as "DZTKF".

Explanation:

Given,

GANGA is coded as DJNDJ

Here, we can observe that the middle letter for both the coded and the decoded word is the same. Thus, we need to keep it as it is.

Consider, the first two letters

GA \Rightarrow DJ

Here, we can observe that,

G + 3 = J

A + 3 = D

Thus, these decoded letters are interchanged here.

Similarly,

For WATCH,

The middle letter "T" will remain unchanged.

Considering first two and the last two letters,

W + 3 = Z

A + 3 = D

T = T

C + 3 = F

H + 3 = K

Interchanging we get,

DZTKF

Hence, WATCH is coded as "DZTKF".

Similar questions