Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

You will create a class that implements this interface:

image text in transcribed

You will then use it to encode and decode the .txt files.

You should 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:

image text in transcribed

You should 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

Describe the linkages between HRM and strategy formulation. page 74

Answered: 1 week ago

Question

Identify approaches to improving retention rates.

Answered: 1 week ago