Question: C++ Help code this? A readability index (or legibility index) gives an idea of how complicated a piece of writing is to read. Often the

C++ Help code this?

A readability index (or legibility index) gives an idea of how complicated a piece of writing is to read. Often the score from such an index will indicate a school level to which the non-confused reader must belong (Comics require a 5th grade education, tax laws require a law degree, etc) One such index was designed by Rudolf Flesch. To calculate the Flesch index of a piece of text, count the number of words in the text, the number of syllables in the text, and the number of sentences in the text Guidelines: A word is any space-delimited sequence of characters (even if it doesn't form a REAL word). Adjacent vowels count as a single syllable white separate vowels in a word count as separate syllables. Exception: an 'e' at the end of a word doesn't count as an extra syllable. (Rea L is one syllable whereas Re Ga L is two.) In addition, any word has at least one syllable - even if the previous rules give a count of zero. If these simplistic syllable counting rules leave you wanting for realism, see the options below... A sentence is any sequence of characters ending in a period, colon, semicolon, question mark, or exclamation mark. (You can't use ispunct here since it would include things like ", () and '.) Once you have your totals, calculate the index by: index = 206.835 - 84.6 * syllables/words - 1.015 * words/sentences Round this value to the nearest whole number. You can read more about readabilty indices in general at this site. More on the Flesch index itself can be found at this site

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!