Question: Rosetta Stone Rosetta Stone Programming challenge description: The Rosetta stone is an ancient decree written into stone that was used by archeologists to translate between

Rosetta Stone Rosetta Stone
Programming challenge description:
The Rosetta stone is an ancient decree
written into stone that was used by
archeologists to translate between Greek
and Ancient Egyptian languages.
Write a program to decode messages using
a Rosetta for translation. The "Rosetta" will
be a series of character sets paired with
english words or characters. If you
translate the encrypted message correctly,
you will find the hidden message.
HINT: Spaces that are not part of a
fragment must be preserved
Input:
Multiple lines of input will be given. The
first line of input will be the message to
translate to English.
All other lines of input will be the Rosetta
needed to translate. The fragments of each
pair will be separated by a pipe character,
one pair per line of input.
For example:
Hola Mundo
Mundo|World
Lunes|Monday
Hola|Hello
Programming challenge description:
The Rosetta stone is an ancient decree
written into stone that was used by
archeologists to translate between Greek
and Ancient Egyptian languages.
Write a program to decode messages using
a Rosetta for translation. The "Rosetta" will
be a series of character sets paired with
english words or characters. If you
translate the encrypted message correctly,
you will find the hidden message.
HINT: Spaces that are not part of a
fragment must be preserved
Input:
Multiple lines of input will be given. The
first line of input will be the message to
translate to English.
All other lines of input will be the Rosetta
needed to translate. The fragments of each
pair will be separated by a pipe character,
one pair per line of input.
For example:
Hola Mundo
Mundo|World
Lunes|Monday
Hola|HelloTranslates:
Hola Mundo
into:
Hello World
Output:
The translated text, which will be a real
English phraseTest 1
Test Input
Hola Mundo
Mundo|World
Lunes|Monday
Hola|Hello
Expected Output [5)
Hello World
Test 2
Test Input
mieux vaut prvenir que gurir
merci|thank you
que|than
malade|sick
mieux|better
gurir|to heal
chien|dog
vaut prvenir|to prevent
beurre|butter
s'il vous plat|please
Expected Output [5)
better to prevent than to heal Translates:
Hola Mundo
into:
Hello World
Output:
The translated text, which will be a real
English phrase Test 3
Test Input
5748494348,574159544845
57494E44,C4F5753424
41|A
42|B
43|C
44|D
45|E
46|F
47|G
48|H
49|I
4A|J
4B|K
4C|L
4D|M
4E|N
4F|O
50|P
51|Q
52|R
53|S
54|T
55|U
56|V
57|W
58|x
59|Y
5A|Z
4
Solve this in C++ using the format given
Rosetta Stone Rosetta Stone Programming challenge

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!