Question: Morse code is a code where each letter of the English alphabet, each digit, and various punctuation characters are represented by a series of dots
Morse code is a code where each letter of the English alphabet, each digit, and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter a file name containing morse code, and then converts that code to text and prints it on the screen. The Morse code table is given in a text file morse.txt. When printing resulting text, display one sentence on each line. There should be no extra spaces at the beginning and at the end of the output.(i need java code)
output should be like this
Please enter the file name or type QUIT to exit: THEORIGINALQUESTION, CANMACHINESTHINK? IBELIEVETOBETOOMEANINGLESSTODESERVEDISCUSSION. ALANTURING
Please enter the file name or type QUIT to exit: File 'input2.txt' is not found. Please re-enter the file name or type QUIT to exit:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
