Question: This is my fourth time asking this and no one has given the desired result. Please follow the question exactly as the image describes. There

This is my fourth time asking this and no one has givenThis is my fourth time asking this and no one has given the desired result. Please follow the question exactly as the image describes. There are many mandatory components of this code. For each of the 4 cases the main function must print the expected output and the actual output for each of the cases. No changes can be made to the code provided in the image. You cannot edit the void function provided in the image, all of the criteria must be answered within the main function.

Homework Write a main program to test function mergeWords given below You must test it for the following cases: es being an empty string (e.g (2) oS having a single word (e.g. "hello" (1) o (3) os having 2 words and (e.g. hello friends") 4) oS having multiple words (eg, "hello friends how are you") For each test case, you must print the expected output and the actual output ou are given a function called mergeWords that takes 2 string parameters. The first parameter (oS) is a sentence, given as input to the function. The second parameter (mS) must be an empty string(). The function merges all words in oS together and stores the result in mS (so that ms now has the same content as oS minus the spaces). Signature of mergeWords: (char [SIZE], char [SIZE]) -> void Example char aString [SIZE] "I can program now char mString [SIZE] Call to mergewords(aString, mstring) modifies mString so that it now stores "Icanprogramnow" /4HWERR void mergewords (char os[SIZE], char ms(SIZE]) int 1, 3i while (iestrlen(os)) if (os[i] else

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!