Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Rapunzel if you can please help I\'m having trouble withthis project. Write a pr

ID: 3619204 • Letter: R

Question

Rapunzel if you can please help I'm having trouble withthis project. Write a program that will read in a line of text and replacesall four letter words with the word "love". For example the inputstring: I hate you, you dodo! should produce the output I love you, you love! Of course the output will not always make sense. Forexample, the input string John will run home. should produce Love love run love. If the four letter word starts with a capital letter, itshould be replaced by "Love", not by "love". You need not checkcapitalization, except for the first letter of a word. Rapunzel if you can please help I'm having trouble withthis project. Write a program that will read in a line of text and replacesall four letter words with the word "love". For example the inputstring: I hate you, you dodo! should produce the output I love you, you love! Of course the output will not always make sense. Forexample, the input string John will run home. should produce Love love run love. If the four letter word starts with a capital letter, itshould be replaced by "Love", not by "love". You need not checkcapitalization, except for the first letter of a word. Write a program that will read in a line of text and replacesall four letter words with the word "love". For example the inputstring: I hate you, you dodo! should produce the output I love you, you love! Of course the output will not always make sense. Forexample, the input string John will run home. should produce Love love run love. If the four letter word starts with a capital letter, itshould be replaced by "Love", not by "love". You need not checkcapitalization, except for the first letter of a word.

Explanation / Answer

please rate - thanks #include #include using namespace std; int main() {string input; int i,length,len,prev=-1; char a; do { cout