Coding New
Coding New
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 ‘@’
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!