My friend just told me he needs to write a code that translates Morse code to English, and he's really struggling (his teacher showed them the interface for the program, but didn't actually give them the source code for it, which I find really stupid, since you can't really make a program, without making some reference to interface elements such as button and checkboxes). I though I'd try doing it myself, since I like a challenge.
Anyway, so I want the input of the user to be checked character-by-character, which means if someone puts in "Hi", the code won't check for "Hi", but instead for "h" and "i" separately, and then display the Morse code equivalent for both. (upper and lower case don't matter much. Right now, I just want to get the translation down)
How would I do this?
What I have tried:
I have not tried anything yet.