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

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

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!