Strings Using - Morse Code Old fashion Morse code uses a series of dots and dashes...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Strings Using - Morse Code Old fashion Morse code uses a series of dots and dashes to stand for letters, digits and punctuation marks. This program will allow a user the option to: 1. Enter a series of words (including blanks) and encoded them into their equivalent Morse code. 2. Enter a series of encoded Morse code and translate it into its equivalent letters, digits and punctuation marks. 3. Allow the user to keep executing the application multiple times (i.e. encode than decode or vice versa). Some sort of loop depending on when the user chooses to quit? (User may want to simply encode then decode then return to decoding. Part of your grade is to allow a workable interface from the user's standpoint) 4. Quit the program. Morse Code is: "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "u "N" "0" "P" "Q" "R" "S" "T" "U". "V" "W" "X" "Y" "Z" THE "2" "3" "5" "6" "7" "8" "g" "0" "Stop" "11 "?" Accuracy counts! (use either a dash or underscore as the "dash" and be consistent, period is the "dot") Tactical hints: 1. You cannot simply use char data since the letters, digits and punctuation marks are composed of multiple dots and dashes. You have to use strings. You can use string arrays to search and find the Morse Code and its equivalent letters, digit or punctuation OR a switch based on the char letters, digits or punctuation marks. 2. The input would have to be a string since you have to enter the English words or Morse Code from the keyboard. 3. If you entered a string of words, each position (letter, digit or punctuation mark) must be individually "broken off" (e.g. substring) and translated. Each Morse code group (e.g.-- or --) must be individually identified (maybe an array search using a for loop or else if structure?). Strings Using - Morse Code Old fashion Morse code uses a series of dots and dashes to stand for letters, digits and punctuation marks. This program will allow a user the option to: 1. Enter a series of words (including blanks) and encoded them into their equivalent Morse code. 2. Enter a series of encoded Morse code and translate it into its equivalent letters, digits and punctuation marks. 3. Allow the user to keep executing the application multiple times (i.e. encode than decode or vice versa). Some sort of loop depending on when the user chooses to quit? (User may want to simply encode then decode then return to decoding. Part of your grade is to allow a workable interface from the user's standpoint) 4. Quit the program. Morse Code is: "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "u "N" "0" "P" "Q" "R" "S" "T" "U". "V" "W" "X" "Y" "Z" THE "2" "3" "5" "6" "7" "8" "g" "0" "Stop" "11 "?" Accuracy counts! (use either a dash or underscore as the "dash" and be consistent, period is the "dot") Tactical hints: 1. You cannot simply use char data since the letters, digits and punctuation marks are composed of multiple dots and dashes. You have to use strings. You can use string arrays to search and find the Morse Code and its equivalent letters, digit or punctuation OR a switch based on the char letters, digits or punctuation marks. 2. The input would have to be a string since you have to enter the English words or Morse Code from the keyboard. 3. If you entered a string of words, each position (letter, digit or punctuation mark) must be individually "broken off" (e.g. substring) and translated. Each Morse code group (e.g.-- or --) must be individually identified (maybe an array search using a for loop or else if structure?).
Expert Answer:
Answer rating: 100% (QA)
Header file section include include using namespace std Function prototype string getCodechar main f... View the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
A C D E F G H J On January 1st 2021, Spiderman issued (sold) $100,000 (100, $1000 par bonds to Black Widow Company These 8% Spiderman 10 year bonds pay interest semi-annual (July 1 and January 1) At...
-
A B C D E F G 1 Suppose the risk free interest rate is 4%. Calculate the following using the EXCEL functions. 2 3 Having $500 today is equivalent to having what amount in one year? 4 Present value...
-
Q2 a b C d e f g h i j k Marks 1.5 Tick the appropriate option A servo system is primarily an open-loop system Each servomotor and the mechanism it moves is called an axis. AC servo motor can be used...
-
The number of letter misprints per page of a book, where 24 pages have been taken at random from this book, is given below. Draw and appropriate control chart and provide interpretation. Page 1 2...
-
What are the key differences between debt capital and equity capital?
-
Suppose that you want to compare proportions of registered Democrats, Independents, and Republicans who have donated blood within the past year. a. Which would be appropriate for this study: random...
-
Presented here are the amounts of Assets, Liabilities, Stockholders Equity, Revenues, and Expenses of The Better Body, Inc., at December 31, 2010. The items are listed in alphabetical order. The...
-
1. Given the role that Mother Nature plays in forecasting Super Bowl ticket prices, how might you adjust your expectations for ticket costs from year to year, given the location of the event? 2....
-
There are many cases in which an individual has been convicted on circumstantial evidence for the crime of murder. Find a recent and local case in your home state (northern Virginia) in which a...
-
Pavement Corp. ("Pavernent) nas been operating sinoe 1398. Ht is now Docember 31, 2004, and Pavement is about to prepare consolidated finendial etetements for Favement and ts subeidiary. Sigur. Co...
-
What would you do if a radiograph is too light and you wish to double radiographic exposure? Group of answer choices Double the SID Double the kVp Double the mAs Use 30% more kV
-
What transpired during the interview, and how do you feel? Are there any areas you need to work on next time if not successful?
-
Find resources on the great man theory, trait theory, and skills theory. Respond to the following questions: Elaborate on which theory best describes Mahatma Gandhi, Martin Luther King, and Nelson...
-
Which OSI layer is responsible for connection - oriented communication?
-
ok nt int ences If a person standing at the first-floor entrance to Sears Tower (recently renamed Willis Tower) in Chicago weighs exactly 140 lb, determine the weight while he or she is standing on...
-
Yvonne, age 32 is a divorced mother of two children, 10 and 8 years old. About three months before, she lost her job of 12 years where she had been a supervisor in a casino. Yvonne did not attend...
-
Gate AB is immersed in oil (SG = 0.82) and hinged at point A. The hinge is blocked, so that the gate cannot be opened. Length AB and width of the gate are 1.2m and 0.8m respectively. Assume the...
-
San Carlos Bank and Trust Company uses a credit-scoring system to evaluate most consumer loans that amount to more than $2,500. The key factors used in its scoring system are found at the conclusion...
-
This JList method returns 21 if no item in the list is selected. a. GetSelectedValue b. GetSelectedItem c. GetSelectedIndex d. GetSelection
-
Write a program with a loop that lets the user enter a series of integers. The user should enter 99 to signal the end of the series. After all the numbers have been entered, the program should...
-
What are the differences between an abstract class and an interface?
-
Jordan Quinn manages the local homeless shelter. He fears that a trusted employee has been stealing from the shelter. This employee receives cash from supporters and also prepares the monthly bank...
-
Refer to question 6. The balance of Allowance for Uncollectible Accounts, after adjustment, will be a. $ 100 $ 100 . b. $ 200 $ 200 . c. $ 300 $ 300 . d. impossible to determine from the information...
-
Refer to questions 6 and 7. Early the following year, Harper wrote off \(\$ 150\) of old receivables as uncollectible. The balance in the Allowance account is now The next four questions use the...
Study smarter with the SolutionInn App