Answer:
Code
Explanation:
The code is instructions that you can write yourself or download from online
That should be the replace function which performs word replacements in documents.
Answer:
Code works perfectly
Explanation:
There is nothing wrong with your program as it runs perfectly and displays the expected results.
You may need to compile with another compiler if you're not getting the required results.
I've added the source code as an attachment (unedited)