Write a program that analyzes text contained in a file by finding the number of nonblank characters, number of nonblank lines, number of words, and number of sentences and that calculates the average number of characters per word and the average number of words per sentence.