Question: 5. Write a program that can be used to train the user to use less sexist language by suggesting alternative versions of sentences given by

 5. Write a program that can be used to train the

5. 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". 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) "; your program need not decide between "her" and "hers". Allow the user to repeat this for more sentences until the user says she 5. 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". 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) "; your program need not decide between "her" and "hers". Allow the user to repeat this for more sentences until the user says she

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!