subject

Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced.

Ex: If the input is:

automobile car children kids manufacturer maker The automobile manufacturer recommends car seats for children if the automobile doesn't already have one.

then the output is:
The car maker recommends car seats for kids if the car doesn't already have one.
You can assume the original words are unique.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
You know the right answer?
Write a program that replaces words in a sentence. The input begins with word replacement pairs (ori...
Questions
question
Chemistry, 09.05.2021 16:40
question
Mathematics, 09.05.2021 16:40
question
Chemistry, 09.05.2021 16:40
question
Mathematics, 09.05.2021 16:40
question
Mathematics, 09.05.2021 16:40
Questions on the website: 13722359