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

  Implementing c++ program that simulates a submarine

Design and implement the C++ program which simulates a submarine. If sub tries to leave area or it wanders into the shallow area, the simulation should end. Initialize array to -1. The user should be able to move the sub up, left, right and down.

  Assume you are a wireless network contractor

How would you describe the OSI model to somebody like this potential client who does not have a technical background? Come up with an analogy, that would help clarify your explanation. Note: If you decide to use an analogy it should be original an..

  How star configuration with a single router in the middle

A seven-story office building has 15 adjacent offices per floor. Each office contains the wall socket for a terminal in the front wall, so the sockets form a rectangular grid in the vertical plane, with a separation of 4 meters between sockets, bo..

  Cellular network

Calculate how many users a cell may support for a 5% call blocking rate. Suppose that each user generates 35mE of load in the busy hour.

  Design a dedicated datapath

Design a dedicated datapath

  Which method allow channel to synchronization sequence

Which method allow channel to synchronization sequence? Discuss the trade-offs between fibre optic and satellite communication in terms of costs, signal capacity, signalling method, interference, likelihood of failure and repair issues, multipoin..

  Explain basic principles of the socio-technical approach

Cite real-world experiences to draw direct connections to the theories. create a note of the social circumstances that relate to the concepts presented by the theories.

  Creating a source documents on access 2010

Explain how to generate a source documents on the access 2010 with the information to involve the password, user ID, name, telephone, address, item number, e-mail address, bid offered, and method of payment.

  How converting between different data system

I would like to know how I can convert from signed binary numbers to decimal values, from decimal numbers to signed magnitude, 2's complement, and short floating point format. Also, it would be better to provide examples with positive and negative..

  Determining the total balances forward and total withdrawals

A heading is to emerge at the top of each page and allowance is to be made for the 45 detail lines per page. At the end of the report, print total balances forward, total withdrawals, total deposits, total interest earned and total final account b..

  Plan the decision table with all possibilities

Plan the decision table with all possibilities

  Developing the circuitry for class project

If number is divisable by 4 or 5, number has to be a multiple of 2 in order to generate an output. If the number is devisable by 3, it has to be a multiple of 3 and 5 to generate an output.

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