Question: Write a program to replace every occurence of the word I from a text file. Do the following: Read the file Pikeville. (1 Mark) Replace

Write a program to replace every occurence of the word I from a text file. Do the following: Read the file Pikeville. (1 Mark)

Replace every occurrence of the word I with We. (3 Marks) Write the modified output to another text file.

Note

Pikeville is a polluted town because of the coal industry. People live in apartment or condominium buildings because of its little space available. I grew up in one of the many buildings in Pikeville admiring from my bedroom window the beauty of the mountains, always exploring with my eyes the forest or the meadows, looking for a clean and quiet place. And, I found one on a hill in the back of the town. It is about 100 feet square, it has seven old trees, wild flowers and a lot of bugs and ants during summer time. I used to go there to sit down on a rock and watch the town and my trees. There was a very old tree, a maple tree, with a huge trunk. The others were smaller, three in the back, three on my left side and the old maple tree on my right. There were flowers, many kinds, white, yellow, purple and blue. It was nobody's place. Nobody owned that hill, but it was beautiful and peaceful and I dreamed many times about a white house over there.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!