Question: Question 4 (15 points): Write a C++ program that will ask the user to enter a sentence ending with a dot, read the sentence a
Question 4 (15 points): Write a C++ program that will ask the user to enter a sentence ending with a dot, read the sentence a with "her or him" and replaces all occurrences of "his" with "hers or his". Your program should not replace the strings" he", "him, "his" when they occur inside another word. Hint: to locate the last character in a word (i.e. locate the dot in a word), we use the following word[word.lenght0-1] nd replace all occurrences of "he" with "she or he", replaces all occurrences of "him
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
