Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program that can be used to train the user to use lesssexist language by

ID: 3619039 • Letter: W

Question

write a program that can be used to train the user to use lesssexist language by suggesting alternative versions given by theuser. The program will ask for a sentence, read the sentence into astring variable, and replac alloccurences of masculine pronouns with gender-neutral pronouns. Forexample, it will replace "he" with "she or he". Thus, the inputsentence see on adviser, talk to him, and listen tohim. should produce the following suggested changed version of thesentence: see on adviser, talk to her or him, and listen toher or him. Be sure to preserbe uppercase letters for the first word ofthe sentence. The pronoun "his" can be replaced by "her(s)"; yourprogram need not decide between "her" and "hers". Allow the user torepeat this for more sentence until the user says she or he isdone. Your program should not replace the string "he" when it occursinside another word, such as "here". A word is any stringconsisting 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. write a program that can be used to train the user to use lesssexist language by suggesting alternative versions given by theuser. The program will ask for a sentence, read the sentence into astring variable, and replac alloccurences of masculine pronouns with gender-neutral pronouns. Forexample, it will replace "he" with "she or he". Thus, the inputsentence see on adviser, talk to him, and listen tohim. should produce the following suggested changed version of thesentence: see on adviser, talk to her or him, and listen toher or him. Be sure to preserbe uppercase letters for the first word ofthe sentence. The pronoun "his" can be replaced by "her(s)"; yourprogram need not decide between "her" and "hers". Allow the user torepeat this for more sentence until the user says she or he isdone. Your program should not replace the string "he" when it occursinside another word, such as "here". A word is any stringconsisting 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. Be sure to preserbe uppercase letters for the first word ofthe sentence. The pronoun "his" can be replaced by "her(s)"; yourprogram need not decide between "her" and "hers". Allow the user torepeat this for more sentence until the user says she or he isdone. Your program should not replace the string "he" when it occursinside another word, such as "here". A word is any stringconsisting 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.

Explanation / Answer

please rate - thanks in response to our messaging-here is the code with no bool I also made a slight correction--if this doesn't work get back tome with the message #include #include using namespace std; int isspace(char); int ispunct(char); void replaceString(string &,string,string); int main() {string input, lookfor, replace; cout