Question: Please use C++ for this problem. Please refer to the samples as to how the output should look. Write a program that reads in a
Please use C++ for this problem. Please refer to the samples as to how the output should look.
Write a program that reads in a line of text and replaces all four-letter words with the word "love". If the four-letter word starts with a capital letter, it should be replaced with "Love". A word is any string consisting of the letters of the alphabet and delimited at each end by a blank, the end of the line, or any other character that is not a letter.
Sample: Enterasentence:Ihateyou. Iloveyou.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
