Average Word Value

General Statement: Read a sentence and calculate the average word value for that sentence. Word value is calculated by finding the average of the ASCII values of all of the letters in a word. Average word value is the average of the word values of all of the words in the sentence.

Input: The first line in the data set is an integer that represents the number of sentences that follow. Each sentence is on a separate line.

Output: Output the average rounded to the nearest integer. All letters are upper case.
The output is to be formatted exactly like that for the sample output given below.

Assumptions: All letters are upper case. Any non-letter characters are not part of the word in which they are located. The maximum word length is 10 letters.
The maximum sentence length is 70 characters.

Discussion: Round only the final average, not the averages of the individual words.

Sample Input:
3
HAPPY BIRTHDAY
SUMMER’S ON ITS WAY!
ST. PATRICK’S DAY WAS IN MARCH.

Sample Output:
THE AVERAGE WORD VALUE IS 76
THE AVERAGE WORD VALUE IS 80
THE AVERAGE WORD VALUE IS 77Solutions: