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.svgExplanation / 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;jRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.