Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started