1. Engineering
  2. Computer Science
  3. please write in c...

Question: please write in c...

Question details

(1) Morse Code Write a program called morseCode.c that asks the user for an English sentence and then displays the sentence in Morse code. Each letter should be replaced by the code shown on the right (i.e., using dash and dot characters). You will have to convert any lowercase characters to upper case. Also, if any non- alphabetic (and non-space) characters are entered, they are to be represented simply by this string: ?. You must leave a space character between each letter and you should leave 3 spaces between each word Here are a couple of sample runs of the program Enter the sentence to be converted: I LOVE C Here is your sentence in Morse Code: Enter the sentence to be converted: This sentence has 2 #s and 2 symbols Here is your sentence in Morse Code:

Please write in c.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution