Question: Please answer in C. I have included my source code below from previous question. #include # define MAX 1000 void morseEncoder(char * str) { for
Please answer in C. I have included my source code below from previous question.

#include
void to_upper_case(char s[]) // lower case to upper case converter { int c = 0; while (s[c]) { if (s[c] >= 'a' && s[c]
int main() { char str[MAX];
printf("Enter the sentence to be converted: "); scanf("%[ ]%*c", str); to_upper_case(str); // conert to uppercase before encoding morseEncoder(str); return 0; }
(2) Reverse Morse Code Write a program called reverseMorseCode.c that takes in a morse code string sequence from the user (as produced from the program above) and converts it back into the original ASCIl sentence as follows Enter the Morse Code sequence: Here is the decoded message: I LOVE C Note that the spacing between the words in the final output is arbitrary and may vary according to whatever you want, as long as the words come out properly. The '?' characters should stay as '? character in the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
