Programming Challenge - Morse Code Cipher 02-24-2014, 07:03 AM
#1
Objective: write a program that translates plaintext into it's morse code format, and include the ability to convert morse code back to its plaintext form as well.
Requirements:
Example:
"This is a simple test by 0xDEAD10CC." = "- .... .. ... .. ... .- ... .. -- .--. .-.. . - . ... - -... -.-- ----- -..- -.. . .- -.. .---- ----- -.-. -.-. .-.-.-"
Requirements:
- In Morse Code Format:
- Each character in morse format must be separated by a single space
- Each word must be separated by 7 spaces
- You must use the traditional '-' and '.' characters for representation
![[Image: 450px-International_Morse_Code.svg.png]](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/International_Morse_Code.svg/450px-International_Morse_Code.svg.png)
Notes:
1. You only need to be able to translate characters that are defined within the table depicted within this image. (Sorry about the transparent background and dark text.) Other special characters can be found online and are optional.
2. Character casing does not matter (i.e. the morse code for 'a' is the same as 'A'). - Each character in morse format must be separated by a single space
Example:
"This is a simple test by 0xDEAD10CC." = "- .... .. ... .. ... .- ... .. -- .--. .-.. . - . ... - -... -.-- ----- -..- -.. . .- -.. .---- ----- -.-. -.-. .-.-.-"




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: Glffl03.png]](http://i.imgur.com/Glffl03.png)


![[Image: e41e887e66a5f51303a56eafd27ba344.png]](https://i.gyazo.com/e41e887e66a5f51303a56eafd27ba344.png)




![[Image: fS.png]](http://www.lensert.com/fS.png)
![[Image: mS.png]](http://www.lensert.com/mS.png)
![[Image: nS.png]](http://www.lensert.com/nS.png)
![[Image: hS.png]](http://www.lensert.com/hS.png)
![[Image: iS.png]](http://www.lensert.com/iS.png)
![[Image: jS.png]](http://www.lensert.com/jS.png)
![[Image: kS.png]](http://www.lensert.com/kS.png)