Answered You can hire a professional tutor to get the answer.

QUESTION

write a function named paragraphStats() that takes one parameter:the name of a file. The file contains a single line of text. The words in the...

write a function named paragraphStats() that takes one parameter:the name of a file. The file contains a single line of text. The words in the paragraph are separated by spaces. The paragraph consists of one or more sentences, each one terminated with a period. There are no other periods in the paragraph. paragraphStats(0 should print out, on separate lines, the following information: the name of the file;the number of sentences;the average number of words in a sentence(to one decimal place);the number of words n the file;the average number of letters in a word. Only count letters in word length;do not count spaces and punctuation.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question