Morse code is a way to encode messages in a series of long and short sounds or visual signals. During transmission, operators use pauses to split letters and words.
Please write a program which will translate lines of Morse code into readable English text. The program should:
- Accept a flat file as input.
- Each new line will contain a string of Morse code. The characters used will be:
- . = dot
- - = dash
- || = break
- Output the English text for each line
-..||---||--.
….||.||.-..||.-..||---||||.--||---||.-.||.-..||-..
dog
hello world
Please use whatever technology and techniques you feel are applicable to solve the problem. We suggest that you approach this exercise as if this code was part of a larger system. The end result should be representative of your abilities and style.
Please fork this repository. When you have completed your solution, please issue a pull request to notify us that you are ready.
Have fun.