Question: Morse code uses dot and dash to encode letters of the alphabet. For example, Captain America in Morse code is: -.-. .- .--. - .-
Morse code uses "dot" and "dash"" to encode letters of the alphabet. For example, "Captain America" in Morse code is:
-.-. .- .--. - .- .. -. / .- -- . .-. .. -.-. .-
Marvel Comics superhero Captain America has a signature phrase, " I could do this all day". Write a program that prints this signature phrase in Morse code. Use a separate call to System.out.print for each word, outputting a space between the letters in a word, and space-forward slash-space (" / ") between words (see above example).


Coding is weird and can't seem to get it right without java error.
8.6 LAB 2c: MorseCode Morse code uses 'dot' and 'dash' to encode letters of the alphabet. For example, 'Captain America' in Morse code is: -.-. .- .--. .-..-/ .- -- . Marvel Comics superhero Captain America has a signature phrase, 'I could do this all day Write a program that prints this signature phrase in Morse code. Use a separate call to System.out.print for each word, outputting a space between the letters in a word, and space forward slash-space ("/") between words (see above example). Letter Morse Letter Morse A N B -... P Q E R F F G T . U V J W X L Y H U 1 w K X L Y -.-- M Z --.. 3044001.1800192 LAB ACTIVITY 8.6.1: LAB 2c: MorseCode 0/10 MorseCode.java Load default template. 1 public class /* FIX ME / 2 3 /* FIX ME: Add the main method header here 4 { 5 /* FIX ME: add your print statements here */ 6 8 9 10 Develop mode Submit mode When done developing your program, press the Submit for grading button below. This will submit your program for auto grading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
