Question: 1. Write a program that computes the Flesch Reading Ease Score and the Flesch-Kincaid Grade Level for the text in the attached file titled: SeizingTheMoment.txt
1. Write a program that computes the Flesch Reading Ease Score and the Flesch-Kincaid Grade Level for the text in the attached file titled: SeizingTheMoment.txt 2. Use these formulas to calculate the above score and level: Flesch Reading-Ease Score (FRES): 206.835 - 1.015 x (total words / total sentences) - 84.6 x (total syllables / total words) Flesch-Kincaid Grade Level: 0.39 x (total words / total sentences) + 11.8 x (total syllables / total words) - 15.59 Refer to this link for more info about how to interpret these metrics: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests 3. Counting rules: 1. Sentences are delimited by: dot, colon, semicolon, question and exclamation marks (. : ; ? !) Note: remove all punctuation characters after counting sentences to count words and syllables more accurately. 2. Words are delimited by one or more consecutive spaces, tabs or newline characters 3. Each vowel in a word is considered one syllable subject to: a) -es, -ed and -e (except -le) endings are ignored (i.e.: not counted as syllables) b) Words of three letters or shorter count as single syllables c) Consecutive vowels count as one syllable Additional Instructions: (updated 11/3/18) 1. Counting vowels - additional rule: count the letter 'y' as a vowel. Here are some examples of counting vowels: The word 'character' has 3 vowels, therefore it is a 3-syllable word. The word 'imperative' has 5 vowels, but it ends with 'e' (and not 'le'); thus we only count it as having 4 syllables. The word 'based' has 2 vowels, but since it ends with 'ed', we only count it as onesyllable. The word 'already' has 4 vowels (counting 'y' as vowel) but since 'e' and 'a' are consecutive, we only count is as having 3 syllables.
Programming should be C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
