We define a sentence as a sequence of words followed by a


Problem

Readability statistics are one measure of how effectively a piece of writing communicates. Educators have devised a number of formulas to help judge the reading level of a piece of writing. These formulas make use of statistics such as average number of characters per word and average number of words per sentence. Write an Ada program to determine the following statistics from a piece of writing stored in a text file.

- the average number of characters in a word

- the average number of words in a sentence

- the average number of sentences in a paragraph We make the following assumptions to simplify this problem:

a. We define a word as a sequence of characters followed by a blank, punctuation mark, or line terminator.

b. Punctuation marks include only commas, periods, exclamation marks, and question marks.

c. We define a sentence as a sequence of words followed by a period, exclamation mark, or question mark.

d. We define a paragraph as a sequence of sentences followed by a null line. This means that a paragraph is followed by two line terminators.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: We define a sentence as a sequence of words followed by a
Reference No:- TGS02652640

Expected delivery within 24 Hours