Question: 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

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. Sug: 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 Monk 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
Get step-by-step solutions from verified subject matter experts
