HTW Berlin Medieninformatik

HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Bachelor)
Aktuelle Themen: Cryptography
Winter Term 2024/25

Lab 2 : Morse Code


Morse Code is an a dichromatic, non-prefix-free code that uses two different sounds, pulses, lights, or other signals that can be discriminated by a trained listener or observer. The first telegraphs used a sort of Morse code to transmit messages. It is still used in military situations.
  1. Implement a program that transforms a plaintext into the appropriate dot-dash sequence for International Morse Code.
  2. Encode messages in dot-dash and post them on the forum.
  3. Implement a program that decodes a dot-dash sequence of International Morse Code. Does the data structure that you use for this make a difference?
  4. Can you decode the messages that the others post? Discuss the problems that you encountered
  5. (For the curious) Include German characters.
  6. (For the internationally inclined) Implement Russian Morse Code.
  7. (For the media experts) Provide a method that takes a dot-dash sequence and produces appropriate sounds.
  8. (For the mobile freaks) Make your mobile phone vibrate to the Morse Code!
  9. (For the exceedingly bored) Decode Morse code sounds found in an MP3 file.

You may work in groups of two and submit the same report for both persons. The report is due the evening before the next lecture at 22.00!


Dr. Hermann Thiel & Prof. Dr. Debora Weber-WulffCC-BY-NC-SA

This material is jointly prepared by Dr. Hermann Thiel and Prof. Dr. Debora Weber-Wulff. Some of the material may come from other sources and is denoted by the copyright notices on the individual pages.