Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C program that will readand English phrase and translate that phase into

ID: 3610516 • Letter: W

Question

Write a C program that will readand English phrase and translate that phase into Morse code. Thephrase will be entered by the user and output to the screen. TheMorse code translation can be found at http://en.wikipedia.org/wiki/File:International_Morse_Code.svg Write a C program that will readand English phrase and translate that phase into Morse code. Thephrase will be entered by the user and output to the screen. TheMorse code translation can be found at http://en.wikipedia.org/wiki/File:International_Morse_Code.svg

Explanation / Answer

please rate - thanks #include #include #include #include int main() {charmorse[37][6]={".-","-...","-.-.","-..",".","..-.","--.","....","..",".---",                   "-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-",                   "..-","...-",".--","-..-","-.--","--..",".----","..---","...--",                   "....-",".....","-....","--...","---..","----.","-----"," "}; char input[50]; charletnum[37]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',                 'Q','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6',                 '7','8','9','0',' '}; int i=0,j,k; gets(input); while(input[i]!='')     {for(j=0;j