Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 (35 points) Write a function which deletes a given word in a given text and put the new word to the exact place of

image text in transcribed

1 (35 points) Write a function which deletes a given word in a given text and put the new word to the exact place of the old one. e.g: text "You know, some things don't mater that much, Lily. Like the color of a house. How big is that in the over-all scheme of life? But lifting a person's heart-now, that matters. The whole problem with people is, they know what maters, but they don't choose it. You know how hard that is, Lily? She was with me the day I went to the paint store to pick out the color. I love my sister May, but it was still so hard to choose Caribbean Pink. The hardest thing on earth is choosing what maters." Delete the word "mater" Put the word "matter" text should be updated as : "You know, some things don't matter that much, Lily. Like the color of a house. How big is that in the over-all scheme of life? But lifting a person's heart-now, that matters. The whole problem with people is, they know what matters, but they don't choose it. You know how hard that is, Lily? She was with me the day I went to the paint store to pick out the color. I love my sister May, but it was still so hard to choose Caribbean Pink. The hardest thing on earth is choosing what matters." Text is from novel (Sue Mont Kidd, The Secret Life of Bees] Function will be sensitive to lower-upper cases. Compile your file and take the screen image of the run. (2 files are required: 1 source file, 1 image file). 1 (35 points) Write a function which deletes a given word in a given text and put the new word to the exact place of the old one. e.g: text "You know, some things don't mater that much, Lily. Like the color of a house. How big is that in the over-all scheme of life? But lifting a person's heart-now, that matters. The whole problem with people is, they know what maters, but they don't choose it. You know how hard that is, Lily? She was with me the day I went to the paint store to pick out the color. I love my sister May, but it was still so hard to choose Caribbean Pink. The hardest thing on earth is choosing what maters." Delete the word "mater" Put the word "matter" text should be updated as : "You know, some things don't matter that much, Lily. Like the color of a house. How big is that in the over-all scheme of life? But lifting a person's heart-now, that matters. The whole problem with people is, they know what matters, but they don't choose it. You know how hard that is, Lily? She was with me the day I went to the paint store to pick out the color. I love my sister May, but it was still so hard to choose Caribbean Pink. The hardest thing on earth is choosing what matters." Text is from novel (Sue Mont Kidd, The Secret Life of Bees] Function will be sensitive to lower-upper cases. Compile your file and take the screen image of the run. (2 files are required: 1 source file, 1 image file)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

8. Why is it essential to keep a close eye on fixed expenses?

Answered: 1 week ago

Question

=+ Who do you think is right? Why?

Answered: 1 week ago