"A"     .-                      "N"     -.                      "1"                  .---- "B"     -...                    "O"     ---                    "2"                  ..--- "C"     -.-.                    "P"     .--.                    "3"                  ...-- "D"     -..                     "Q"     --.-                   "4"                  ....- "E"     .                       "R"     .-.                     "5"                  ..... "F"     ..-.                    "S"     ...                     "6"      ­­            -.... "G"    --.                     "T"     -                       "7"                  --... "H"     ....                    "U"     ..-                     "8"                  ---.. "I"      ..                      "V"     ...-                    "9"                  ----. "J"      .---                   "W"    .--                     "0"                  ----- "K"    -.-                     "X"     -..-                    "Stop"            .-.-.- "L"     .-..                    "Y"     -.--                   ","                   --..-- "M"    --                      "Z"     --..                    "?"                  ..--.. in c++ how would i write a function that takes the input morse code and turn it to english for example -..- .-.. --. should return xlg  I would also like to convert strings like hello world to morse code

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question

"A"     .-                      "N"     -.                      "1"                  .----

"B"     -...                    "O"     ---                    "2"                  ..---

"C"     -.-.                    "P"     .--.                    "3"                  ...--

"D"     -..                     "Q"     --.-                   "4"                  ....-

"E"     .                       "R"     .-.                     "5"                  .....

"F"     ..-.                    "S"     ...                     "6"      ­­            -....

"G"    --.                     "T"     -                       "7"                  --...

"H"     ....                    "U"     ..-                     "8"                  ---..

"I"      ..                      "V"     ...-                    "9"                  ----.

"J"      .---                   "W"    .--                     "0"                  -----

"K"    -.-                     "X"     -..-                    "Stop"            .-.-.-

"L"     .-..                    "Y"     -.--                   ","                   --..--

"M"    --                      "Z"     --..                    "?"                  ..--..

in c++

how would i write a function that takes the input morse code and turn it to english for example -..- .-.. --. should return xlg 

I would also like to convert strings like hello world to morse code

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage