First page Back Continue Last page Overview Graphics

Exercise: Morse Code

Write a function txt2morse, which translates a text to morse code, i.e. the function returns a string with the morse code.

Write another function morse2txt which translates a string in Morse code into a „normal“ string.

The Morse character are separated by spaces. Words by three spaces.