Question
USE JAVA PLEASE! DO NOT COPY FROM OTHER WEBSITE! Morse code is a code where each letter of the English alphabet, each digit, and various
USE JAVA PLEASE! DO NOT COPY FROM OTHER WEBSITE!
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. Figure 1 shows part of the code. Write a program that asks the user to enter a string and then converts that string into Morse code. Use hyphens for dashes and periods for dots.
Some points to consider:
1. Design: Figure out what classes and methods you need to develop. Ex. Utility classes, class to represent Morse code generator, etc
2. Architecture: Create a UML of your architecture idea. Make it re-usable and configurable by someone other than yourself
3. The input can be given in two ways
a. Command line args
b. Passed into a function
4. Use string buffers when you are (or are going to) manipulating large Strings
5. Use appropriate accessors for your variables and methods
6. EXPLAIN: What strategy you used to store the morse code encoding table and WHY? (-10 points if this is missing). Can add it as comment on the class.
Table Code Character cter Code Character Code Character space Code comma period " estion mark
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