Question: Write a Java program that asks a user for a .txt file, then converts the file into Morse code if it is in English, or

Write a Java program that asks a user for a .txt file, then converts the file into Morse code if it is in English, or converts it into English if it is in Morse code.

Create a class that implements this interface:

Write a Java program that asks a user for a .txt file,

Use it to encode and decode the .txt files.

Use two HashMaps, one to go from morse to letters, and one to go from letters to morse.

Read the codes in from the MorseCodeTable file:

then converts the file into Morse code if it is in English,

Pass the filename into the object via the constructor.

public interface Converter f //public converter(String encodingfile);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!