Preserve uppercase letters for the first word of sentence

Assignment Help Computer Engineering
Reference no: EM1331957

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 occurences 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 or he is done.

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 characters long.

Reference no: EM1331957

Questions Cloud

Write down a program that reads a person''s name : Write down a program that reads a person's name.
Explain what are the similarities among brick and mortar : Explain what are the similarities among brick and mortar
Examining cultural and ethnic differences of countires : Examine the cultural and ethnic differences of the two selected countries and determining the appropriate negotiation tactic that would be most effective in reaching the objective.
U.s. border security : Prepare a comprehensive plan for U.S. border security. The plan will include concepts such as border security, immigration issues, economic impact and future political ramifications.
Preserve uppercase letters for the first word of sentence : create 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.
Pre-attack assessment and security review : Discuss the pre-attack assessment and security review as it relates to emergency response situations.
What is your philosophy or what is the purpose of hr : Human Resources Management - What is your philosophy or what is the purpose of HR
Explaining company overcome ethnocentricity : How does a company overcome ethnocentricity?
Carrying out emergency response : You are dispatched to an explosion at a predominately black church where the pastor has recently been in the news due to his support for a particular candidate for local office.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

  New system implementation

In new system implementation, what could you do as the lead system designed to assure the implementation went smoothly?

  Class diagram and pseudocode describing the class

Design the class diagram and write down the pseudocode that describes the class.

  What may be the penalty for which crimes

What may be the penalty for which crimes. Who should enforce these laws?

  How many tasks real-time application contain

How many tasks real-time application contain In this particular real-time application, there are many tasks; each runs exact same code except with different data each time.

  Face-to-face contact would be expected

Some though argue that non-verbal clues quite often inhibit, rather than enhance, communications. We get distracted by accents, appearance, mannerisms, dress-style etc, and do not pay sufficient attention to the message being delivered. If that is..

  Implementing model to check the vulnerability

Construct a simple threat model which explains the risk this represents: attacker(s), vulnerability, assets, attack vector, and the likelihood of occurrence, likely impact, and the plausible mitigations.

  Dbmss have their own language

Explain Do all DBMSs have their own language? Is it similar to a programming language.

  How to produce a function mult-stream

How to produce a function mult-stream.

  Find significant inversions in the input sequence

offer an O(n*log(n)) algorithm to count the number of significant inversions in the input sequence.

  Implementing the code

Write down a complete program which declares an integer variable, reads a value from the keyboard into that variable. Write down a program which determines the mileage reimbursement for the salesperson at a rate of $.35 per mile.

  Use that both versions of average()

Create a class called CollegeCourse with. use that both versions of average()

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd