Start by asking the user to type in a phrase. Count all the words in the phrase. Count all the syllables in each word. To make this simple, use the following rules: Each group of adjacent vowels...



  1. Start by asking the user to type in a phrase.

  2. Count all the words in the phrase.

  3. Count all the syllables in each word. To make this simple, use the following rules:

    • Each group of adjacent vowels (a,e,i,o,u,y) counts as one syllable. For example, the "ea" in "real" contributes one syllable, but the "e...a" in "regal" counts as two syllables.

    • "e" at the end of the word does not count as a syllable.

    • Each word has at least one syllable, even if the previous rules give a count of 0 for a word.



  4. Count the number of sentences. A sentence is ended by a period, colon, semicolon, question mark, or an exclamation mark.

  5. Use the formula Index = 206.835 - 84.6 * (Number of syllables/Number of Words) - 1.015 * (Number of words / Number of sentences)

  6. Output the number of syllables, number of words, number of sentences and finally the readability index.

Jul 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here