Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the bash shell, create an English to Morse Code translator. The script wil

ID: 3690484 • Letter: U

Question

Using the bash shell, create an English to Morse Code translator. The script will take a string as it's only parameter. The script will handle capital letters, numbers and space only. The script will use an associative array to look up the English letter and find its matching Morse Code. Between each code will be a ",SP,", and at the end of the line an EOT. If there is a space at the beginning "SP," or end ",SP" of the line there will only be one comma needed.

As an example when morse "a b c" is entered, the result will be

.-,SP,-...,SP,-.-.,EOT

International Morse Code 1. The length of a dot is one unit. 2. A dash is three units 3. The space between parts of the same letter is one unit. 4. The space between letters is three units 5. The space between words is seven units

Explanation / Answer

MorseString.java:

MorseCharacter.java:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote