If you can't write a program that asks the user to enter text on your own. Then you will not be able to 'do much more' on your own either. Either attempt it by yourself first and post any problems you are having or don't post at all. (No rudeness intended)
The program must simply ask the user to type in a text since a text is a list of words separated by spaces.
.. since a text is a list of words separated by spaces.
well ... duh
so, if there weren't any spaces in there, the program wouldn't have to ask the user for input? how does the program know whether or not the user intends to enter spaces?
I don't need it, so, for me it isn't urgent. but, I must say, I was pleasantly surprised by your post. at least you weren't asking us to write it for you. but I do can understand how you, as a starting developer, can get frustrated by o so cruel deadlines, and that you want to share your frustrations with us.
well, you have my support, and I'm totally convinced you will be able to find the knowledge to write this master piece of code you're so desperately searching your mind for.