This is my code but it failed. 11.05) Write a program that takes words from a text file and prints each one on a separate line of an output file followed by the number of letters (alphabetic characters) in the word. Any leading or trailing punctuation marks should be removed from the word before it is printed. When all the text has been processed, display on the screen a count of the words in the file. Assume that words are groups of nonwhitespace characters separated by one or more whitespace characters. Given the following was entered from the keyboard: dat and the file 'dat' initially contains: My=drink"is"getting:lonely. "Would"you=like"to"join=me"with=yours? you displayed: Enter:data:file=name:My=2 drink =5 is =2 getting =7 lonely. =7 Would 5 You =3 like =4 to =2 join =4me=2 with =4 yours? 6 - instead of: Enter-data: file=name: Word"Count: = 13 Furthermore, you wrote: to 'std.out' instead of: My=2 drink =5is=2 getting =7 lonely 6 : Would 5 . You =3 like =4 to =2 join= 4 me=2 with =4 yours =5.