Write a program that reads in a line of text and replaces all four-letter words with the word “baby”.
Sample output:
Enter a line of text: You are my love
If the word “baby” replaces all the four-letter words: You are my baby
Of course, the output will not always make sense. For example, if the user inputs: “John will go home” the output would “Baby baby go baby”.
Note: If the four-letter word starts with capital letter, it should be replaced by “Baby“, not by “baby”. You need not check the capitalization, except for the first letter of a word. A word is any string consisting of the letters in the alphabet delimited at each end by a blank, the end of the line, or any other characters that is not a letter. Your program should repeat this action until the user says to “quit”.