Hey everyone, I'm having a really hard time with this code I have... the object is to determine the average number of characters and average number of letters in a word
and average number of words in a sentence (which in this case is just each line in a text document). At the same time, it should be printing all the lines of input in the text document.
I'm fairly certain this code should be working, but clearly it doesn't, giving me exceptions instead of the result I would like to see.
Thanks in advance
EDIT: txtdoc.txt can be anything.. but for an example, I am using
Tell me what thy lordly name
is on the nights plutonian shore
Quoth the raven nevermore