Question: Please provide a different answer than the one posted previously. I would like the output to resemble exactly what is in the black box, if

Please provide a different answer than the one posted previously. I would like the output to resemble exactly what is in the black box, if possible. Please comment your code so I can learn from the answer.
3. String Search Input one line of sentence, and a string. Then: a) Write a function to extract all words from that sentence into a global 2-dimensional char arrays and their start position in the sentence. Call this function in your main function and then print the results. b) Write another function to decide whether a word contains a certain string in a case- insensitive manner. Call this function in your main function for all the words. Then output all words that does contain the string, together with their start and end position at the original sentence Make use of the functions you write in your main function. c) Example & Output Format Requirements our sentence: i! Are you high? Remember, you sweared to live a HEALTHIER life our string to be searched ords found ii Are you high Remember you sweared to live a HEALTHIER 1ife earch result: i 0 1 high 12 15 EALTHIER S0 58 Press any key to continue Assumptions i. Punctuations only include: ".?" ii. No redundant space at the beginning and the end of the sentence ii. Words are separated by either one single space or one punctuation one single space iv. The number of words is no more than 1000, and the length of each word is no more than 15 Other Requirements . Do not include any header files other than
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
