0% found this document useful (0 votes)
48 views11 pages

Coding New

Uploaded by

Anuj Raj Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views11 pages

Coding New

Uploaded by

Anuj Raj Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

CODING DECODING

NEW PATTERN
5j&8@u#6r%w9m7!2cp4≤1
All the consonants are coded in the above series from left to right in the given order only. For
e.g. B is coded as 5, C as j, D as &, F as 8, and so on. All the vowels are coded from 1-5 in the
increasing order. E.g. A is coded as 1, E as 2 and so on.
I. If the word starts with a vowel and also ends with a vowel, then the codes for these letters
are interchanged.
II. If in the word, a letter is immediately followed and preceded by a vowel, then the code for
that letter is replaced by the code of previous letter in dictionary.
III. If two numbers come consecutively in any code then the numbers are coded as ‘*’
IV. If the word ends with a consonant, then the code for that consonant is exchanged with the
code of third letter of the word.
V. If any word has two same alphabets at consecutive positions, they are coded as ‘@’
( Note: The unchanged letters will be replaced by the codes given in the string. Conditions are
applied 1-5.
What will be the code for the words ‘amaze’ ‘travel’ ‘hollow’
5j&8@u#6r%w9m7!2cp4≤1 A1 Hu O4 Vc
B5 I3 P9 Wp
I. If the word starts with a vowel and also ends with a vowel, then
the codes for these letters are interchanged. Cj J# Qm X4
II. If in the word, a letter is immediately followed and preceded by D& K6 R7 Y≤
a vowel, then the code for that letter is replaced by the code of
previous letter in dictionary. E2 Lr S! Z1
III. If two numbers come consecutively in any code then the F8 M% T2
numbers are coded as ‘*’
IV. If the word ends with a consonant, then the code for that G@ Nw U5
consonant is exchanged with the code of third letter of the word.
V. If any word has two same alphabets at consecutive positions,
they are coded as ‘@’

‘amaze’ ‘travel’ ‘hollow’


(i) If there are two consecutive vowels in the word, then the code for each vowel is replaced by the
code of immediate next letter in the alphabetical order.
(ii) If a consonant is immediately preceded as well as followed by a vowel, then the code for that letter
is changed to the code of next 4th letter in the alphabetical order.
(iii) If a letter is repeated more than once, then the code of that letter is replaced with the next vowel
that appears in the alphabetical order.
(iv) If a word starts and end with the consonant, then the codes for the letters at extreme ends are
exchanged.
The positions of the letters in a word are to be considered from left to right. If more than one
condition is applicable, then the conditions are to be applied in the given order (i.e., condition (i)
followed by (ii) and so on).
(Note:- the letters which are not changed by any condition, are replaced with their respective codes at
the end).
What is the code for "RATIONAL"?
In a coded language:
‘Window is black glass is coded as ‘9$ 10% 12$ 0%’
‘Great wall of china’ is coded as ’13& 11$ 2% 9*’
‘Pointed edges put’ is coded as ’14& 12* 4#’
What will be the code for ‘Coding Decoding’?
‘all proud we’ is coded as ‘@# @@ ##’
‘Come over’ is coded as ‘@@ @#’
‘pray to the lord’ is coded as ‘#@ #@ ## #@’

What will be the code for ‘one day play’


Phrase Step 1 Step 2 Output

Tap water Atp twaer 17 38 @h #k

River Fish Vrier Isfh 40 17 #d @h

Ocean Wave
Input Step 1 Step 2 Step 3 Output
1562 3241 1782 3740 5023 3960 759 436 323 000 14 10 18 @408 #111
672 836 490 654 96 45 04 13 15 #1315
427 316
It is given that,
The vowels are coded with certain symbols. The consonants that appear before M in the English alphabetical
series are coded from 1 to 9 (such that B=1, C=2, D=3 and so on) and, similarly, code for the consonants that
appear after P in the English alphabetical series starts from 0 to 8 M, N and P, are coded as 5, 3 and 8
respectively.
Following conditions are followed while coding:
1. If a word starts and ends with the same alphabet, then the alphabet at both places will be coded as ‘7’
2. If a vowel is preceded as well as followed by consonant then, that vowel is coded with the numeric code of
the last alphabet of that word. In case, the last alphabet is a vowel then the vowel will be coded as ‘0’
3. If the word ends with either M, N or P the non-coded vowels in the word are coded as ‘3’.
4. If the word starts with a vowel and ends with a consonant, then the code for that vowel will be the same as
the numeric code for that consonant
5. If the word has 2 same consonants at consecutive positions, then the 2 consonants are coded as ‘$’. (M, N, P
are inclusive)
6. If no condition satisfies then, the vowels are to be coded as ‘&’.
7. If more than one condition satisfies then the condition that comes 1st in the sequence will be given the
priority (Except for condition (v) which has to be given the highest priority)
What will be the code for the word – “WITTY TURNIP”?
What will be the code for “AIR PUPPETS”
1. If a word starts and ends with the same alphabet, then the
alphabet at both places will be coded as ‘7’
A G5 M5 S2 Y7
2. If a vowel is preceded as well as followed by consonant
then, that vowel is coded with the numeric code of the last B1 H6 N3 T3 Z8
alphabet of that word. In case, the last alphabet is a vowel
then the vowel will be coded as ‘0’ C2 I O U
3. If the word ends with either M, N or P the non-coded
vowels in the word are coded as ‘3’. D3 J7 P8 V4
4. If the word starts with a vowel and ends with a consonant,
then the code for that vowel will be the same as the numeric E K8 Q0 W5
code for that consonant
5. If the word has 2 same consonants at consecutive positions, F4 L9 R1 X6
then the 2 consonants are coded as ‘$’. (M, N, P are inclusive)
6. If no condition satisfies then, the vowels are to be coded as
‘&’.
7. If more than one condition satisfies then the condition that
comes 1st in the sequence will be given the priority (Except
for condition (v) which has to be given the highest priority)
What will be the code for the word – “WITTY TURNIP”?
What will be the code for ‘AIR PUPPETS’?
THANK YOU!

You might also like