Convert the program attached to this text to allow the program to print out each word of the input sentence to a separate line of a file called words.txt.
After this, create another program that could be used to take the words in words.txt and recreate the original sentence - this time printing the result to the screen. Please write well commented code.