Question
Updated Quetion Please do download the morse.csv file from this link https://algs4.cs.princeton.edu/35applications/morse.csv It's in CSV format so you'll need to convert to another format that
Updated Quetion
Please do download the morse.csv file from this link
https://algs4.cs.princeton.edu/35applications/morse.csv
It's in CSV format so you'll need to convert to another format that can be
read by a Java program
Write a Java program that converts letters & numbers to Morse code, and the reverse.
User Interface:
A menu that asks the user which conversion they want
The user can select the option to enter the name of a text file that contains the message or enter from the command line
(input)
The user can select the option to enter the name of a text file that contains the converted message (output) or display to the
screen.
Input:
If plain text input, no spaces between characters except between words
If morse code, one space between characters, 2 spaces between words
Output:
if plain text output, no spaces between characters in a word, spaces between words.
If morse code output, 1 space between characters, 2 spaces between words.
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