Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in C++ and you must use the Pseudo-Code given. Make it simple Exercise 2 (Prog Proi8.7) (Use the string class to solve the

image text in transcribed

image text in transcribedPlease code in C++ and you must use the Pseudo-Code given. Make it simple

Exercise 2 (Prog Proi8.7) (Use the string class to solve the problem) Write a program that can be used to train the user to use less sexist language by suggesting alternative versions of sentences given by the user. The program will ask for a sentence, read the sentence into a string variable, and replace all occurrences of masculine pronouns with gender-neutral pronouns. For example, it will replace "he" with "she or he", and "him" with "her or him". Thus, the input sentence See an adviser, talk to him, and listen to him should produce the following suggested changed version of the sentence: See an adviser, talk to her or him, and listen to her or him. Be sure to preserve uppercase letters for the first word of the sentence. The pronoun "his" can be replaced by "her(s) or his"; your program need not decide between her" and "hers". Allow the user to repeat this for more sentences until the user says she or he is done. You need to take care of the following string replacements: he/she-she or he him/her -> her or him his/her(s) -> her(s) or his Exercise 2 (Prog Proi8.7) (Use the string class to solve the problem) Write a program that can be used to train the user to use less sexist language by suggesting alternative versions of sentences given by the user. The program will ask for a sentence, read the sentence into a string variable, and replace all occurrences of masculine pronouns with gender-neutral pronouns. For example, it will replace "he" with "she or he", and "him" with "her or him". Thus, the input sentence See an adviser, talk to him, and listen to him should produce the following suggested changed version of the sentence: See an adviser, talk to her or him, and listen to her or him. Be sure to preserve uppercase letters for the first word of the sentence. The pronoun "his" can be replaced by "her(s) or his"; your program need not decide between her" and "hers". Allow the user to repeat this for more sentences until the user says she or he is done. You need to take care of the following string replacements: he/she-she or he him/her -> her or him his/her(s) -> her(s) or his

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Do you think physicians should have unions? Why or why not?

Answered: 1 week ago