Question: Strings Using - Morse Code Old fashion Morse code uses a series of dots and dashes to stand for letters, digits and punctuation marks.

Strings Using - Morse Code Old fashion Morse code uses a series

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?).

Step by Step Solution

3.54 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Header file section include include using namespace std Function prototype string getCodechar main f... View full answer

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 Programming Questions!