Question: Please use the problem - solving process for this question. According to Wikipedia, The Flesch / Flesch Kincaid readability tests are readability tests Links to

Please use the problem-solving process for this question. According to Wikipedia, The Flesch/FleschKincaid readability tests are readability tests Links to an external site. designed to indicate comprehension difficulty when reading a passage of contemporary academic English Links to an external site.. There are two tests, the Flesch Reading Ease, and the FleschKincaid Grade Level. Although they use the same core measures (word length and sentence length), they have different weighting factors. The "FleschKincaid Grade Level Formula" translates to a U.S. grade level
Links to an external site., making it easier for teachers, parents, librarians, and others to judge the readability level of various books and texts.
The grade level is calculated with the following formula:
image.png
Problem. Using this formula and your knowledge of how to input and output text files, write a program that will take in a text file and return the number of words in the text, the number of sentences in the text, the number of syllables in the text, and the Flesch-Kincaid Grade Level. Please use the three files provided (gettysburg.txt, declaration.txt, and green_eggs_and_ham.txt.
Assumption: the number of syllables for each word is the number of letters in the word divided by three. Use integer math to calculate the number of syllables for each word.
Constraint: This program requires two classes: GradeLevel and GradeLevelTest. GradeLevel will be the repository for all methods, other than main, used in the grade level calculations. Examples: processLine, wordCount, sentenceCount, numberSyllables, ,,,. GradeLevelTest will have the main method.

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 Programming Questions!