Computer Science, asked by amanrcky7052, 1 year ago

If good, bad and ugly are coded as 164, 21 and 260 respectively, then what is the code of jump?

Answers

Answered by Muskan1101
4
FORMULA:-
Sum of alphabet at with number they fall then multiple it with total character.

GOOD=(7+15+15+14)×4=164
BAD=(2+1+4)×3=21
UGLY=(21+7+12+25)×4=260

So,

JUMP=(10+21+13+16)×4=240

Hence,
jump will be coded as 240
Answered by anjalin
0

The word 'jump' shall be coded as 240.

Encryption:

Encryption is the manner of changing data or information right into a code, specifically to prevent unauthorized access.

Given coding

Here in the given coding convention:-

  • The word 'good' is coded as 164.
  • The word 'bad' is coded as 21.
  • The word 'ugly' is coded as 260.

Here we will look at that the codes are precisely divisible through the length of the corresponding words.

So dividing the codes through the length of corresponding words we get:

  • code(good)=41
  • code(bad)=7
  • code(ugly)=65

Now the code has come to be the sum of the corresponding numbers of letters.

For eg: code(good)=n(g)+n(o)+n(o)+n(d)=7+15+15+14=41

  • Hence, the words are encrypted because they are made from the sum of the numbers of the corresponding letter and the length of the word.
  • So, the word 'jump' shall be coded as:

code(jump)=4\times[n(j)+n(u)+n(m)+n(p)]=4\times[10+21+13+16]=4\times60=240

Hence, The word 'jump' shall be coded as 240.

Similar questions