Question: Use JAVA Programming for this: According to Wikipedia, The Flesch/FleschKincaid readability tests are readability tests designed to indicate comprehension difficulty when reading a passage of

Use JAVA Programming for this: According to Wikipedia, The Flesch/FleschKincaid readability tests are readability tests designed to indicate comprehension difficulty when reading a passage of contemporary academic English. 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, 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:

0.39*(total words/total sentences)+ 11.8*(total syllables/total words)-15.59

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.

Additional Requirement: Use at least one Exception Handling Mechanism

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!