Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

Simplify each power of i. i 25

Answered: 1 week ago

Question

Create an intervention for treating implicit racial bias.

Answered: 1 week ago

Question

tactics are by definition

Answered: 1 week ago