write a program in borland c++that can be used to train the user to use less sexist language by suggesting alternative versions given by theuser. The program will ask for a sentence, read the sentence into a string variable, and replac alloccurences of masculine pronouns with gender-neutral pronouns. For example, it will replace "he" with "she or he". Thus, the input sentence
see on adviser, talk to him, and listen to him.
should produce the following suggested changed version of the sentence:
see on adviser, talk to her or him, and listen to her or him.
Be sure to preserbe uppercase letters for the first word of the sentence. The pronoun "his" can be replaced by "her(s)"; your program need not decide between "her" and "hers". Allow the user to repeat this for more sentence until the user says she or he isdone.
Your program should not replace the string "he" when it occurs inside another word, such as "here". A word is any string consisting of the letters of the alphabet and delinited at each endby a blank, the end of the line, or any othe character that is nota letter. Allow your sentence to be up tp 100 character long.
Best answer:

Answers (1)