Computer Science Homework Solutions
Problem
#135961

C++ Programming Using Strings

See attached file for full problem description.
I need both the codings and the exec file.

Attached file(s):
Attachments
Project 5b7.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

Project 5b7.doc
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 in 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 advisor, 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 or he is done.

This will be a long program that requires a good deal of patience. 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 delimited at each end by a blank, the end of
the line, or any other character that is not a letter. Allow your
sentences to be up to 100 character long.

Solution Summary

C++ Programming Using Strings is demonstrated.

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$11.97)
Included in Download
  • Plain text response
  • Attached file(s):
    • s.cpp
    • s.zip
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse