In a certain code language COMPUTER is written as RFUVQNPC. How will MEDICINE be written in that code language ?
EOJDJEFM
MEDICINE is coded as EOJDJEFM — option 3.
Step 1 — reverse the word. Write COMPUTER backwards:
C O M P U T E R → R E T U P M O C
Step 2 — compare with the given code. Set the reversed word against RFUVQNPC letter by letter :
| Reversed | R | E | T | U | P | M | O | C |
|---|---|---|---|---|---|---|---|---|
| Code | R | F | U | V | Q | N | P | C |
| Shift | 0 | +1 | +1 | +1 | +1 | +1 | +1 | 0 |
The rule. Reverse the word, then move every letter one place forward in the alphabet except the first and the last, which are left unchanged.
Step 3 — apply it to MEDICINE. Reversing gives E N I C I D E M. Now keep the first E and the final M as they are, and advance the six letters between them:
| Reversed | E | N | I | C | I | D | E | M |
|---|---|---|---|---|---|---|---|---|
| Shift | 0 | +1 | +1 | +1 | +1 | +1 | +1 | 0 |
| Code | E | O | J | D | J | E | F | M |
The code is therefore EOJDJEFM.
Checking the near miss. Option 4, EOJDEJEM, differs only in the fifth and sixth letters, where it has E and J instead of J and E — the result of transposing two letters while reversing. Option 1 begins with M rather than E, which means the word was never reversed at all, and option 2 does not correspond to any consistent shift. Writing the reversed word out fully before shifting is what prevents all three errors.
Hence, the answer is EOJDJEFM.
In a certain code, GARNISH is written as RGAINHS. How will GENIOUS be written in that code?
In a certain code language 'MATHEMATICS' is written as 'LBSIDNZUHDR'. How is 'CHEMISTRY' written in that code language?