Vocals to Morse translator

We want to translate into Morse code message written using only capital
vowels that is hidden in a string s.

For example, if s = “LALALAlalala” the message is “AAA” and its
translation to Morse code is “.- .- .-”.

Implement the function @morse_vowel_translator (dic_morse_vow, s)@ such
that given the dictionary @dic_morse_vow@ whose keys are the capital
vowels and their values their respective Morse codes, returns the
translation of the message hidden at s. To find this message, you have
to extract from s the capital vowels that it contains, preserving the
order in which they appear. The translation of the message is simply the
Morse code of each capital vowel, separated by a blank space. In case
the message is empty, an empty string must be returned.

 Observation

The dictionary @dic_morse_vow @ =
“A”:“.-”,“E”:“.”,“I”:“..”,“O”:“---”,“U”:“..-” will be given in private
test cases.

Sample session

Problem information

Author: Professors Informàtica EEBE

Generation: 2026-01-25T17:34:49.570Z

© Jutge.org, 2006–2026.
https://jutge.org
