Skip to content

Instantly share code, notes, and snippets.

@dbc2201
Last active February 17, 2021 16:56
Show Gist options
  • Select an option

  • Save dbc2201/dc25ef3a4ad8ee2ebe59970333f697d4 to your computer and use it in GitHub Desktop.

Select an option

Save dbc2201/dc25ef3a4ad8ee2ebe59970333f697d4 to your computer and use it in GitHub Desktop.
Morse Code Coding Challenge

🔥 Coding Challenge 🔥

You know Morse Code, right? No? Too bad! Google It!

You were supposed to message your significant other during my class. But alas! I will catch your mobile phones if you take them out during the class. So, how do you do that? Simple! On a piece of paper. But wait a minute, you don't want the message to be seen or read by any other students. So, you decide to encode it in Morse Code. Why? Because.

So, write a program in Java for yourself, so that you enter a message and the program converts that message into Morse Code Equivalent. Create a function for the same.

Example

HIE = .... .. .

CANTEEN? = -.-. .- -. - . . -. ..--..

Here's a link to the International Morse Code.

@dbc2201
Copy link
Author

dbc2201 commented Feb 17, 2021

Please DO NOT post your answers here, keep them to your GitHub Gists/Repositories! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment