Write a program that in a loop prompts the user to enter a text line
and then prints out the line replacing capital letters by lowercase
letters and streaks of two or more spaces by single spaces.
The loop is terminated when the user just types a carriage return.
Here is an example of the interactions in a possible run:
Enter line [CR to exit] : Roses are VERY red roses are very red Enter line [CR to exit] : VioLETS ARE Blue violets are blue Enter line [CR to exit] :
Your main program should use a function written by you:
As a comment at the beginning of your program you should do a case analysis for this problem: problem statement, analysis, design, and testing.