Question: Morse code is a character encoding scheme that was used in communication systems to encode text messages as a series of dashes and dots to

 Morse code is a character encoding scheme that was used incommunication systems to encode text messages as a series of dashes anddots to be sent using the telegraph. The figure shows the translation

Morse code is a character encoding scheme that was used in communication systems to encode text messages as a series of dashes and dots to be sent using the telegraph. The figure shows the translation from English letters to dashes and dots. International Morse Code 1. The length of a dot is one unit. 2. A dash is three units. 3. The space between parts of the same letter is one unit. 4. The space between letters is three units. 5. The space between words is seven units A Museum would like to show case how Morse code used to work and translate messages from English to Morse code. They A requested you write a Java program to translate from English toB Morse code sequence Your program should continue to accept user input text till user type the following sequence on a new line: "##Quit##". Your program will then proceed to translate the message into Morse code and display the result to the user Write a Java class Called MorseTranslator that contain one static method that perform the translations called EnglishToMorse). Implementation details: Class MorseTranslator: o Methods: * String EnglishToMorse(String) Takes a String with the English letters and return a String with the translated Morse code Use String, Characters or any Java API classes' methods to translate the English texts into Morse code Bonus (5 Points) Make an Option to translate from text from MorseCode to English text in a separate method called MorseToEnglish o Write a Java program that will simulate a text editor, the program will start by letting users typing texts to be stored in a StringBuilder class internally. If the user types the following sequence ##OPTION##" in a new line then press enter, your program should perform this option The following is a list of options that your program should do 1- Replace a. Prompt for the word you would like to replace, b. Prompt the user for the word to be replaced with 2- Delete all Text Clear all text a. 3- Resume Editing a. Do nothing, just resume editing 4- Quit a. End your program b. Use System.exit (O); method to end your program. For example, if user the user was typing the following text: This is a text program now I will replace text with homework # # Replace## Your Program will stop accepting edits from the user and prompt the user for the word to replace and word to be replaced with This is a text program now I will replace text with homework # # Replace## What is the word you would like to replace: text What is the word to replace it with: homework The Program will display the new text after the replace operation is completed. This is a homework program now I will replace text with homework Your program should continue to accept inputs till user chooses another option. Write a Java Class called Editor that contain all of the operations described above, use these methods from your main code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!