Answered step by step
Verified Expert Solution
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:
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:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started