Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I wrote this program, and I only wrote the method wordcount which is also number of words. I was help writing the other methods, and
I wrote this program, and I only wrote the method wordcount which is also number of words. I was help writing the other methods, and please I want it to be have a split command like the one I did so I can understand it. thank you
The grade level is calculated with the following formula: total words total sentences +11.8 total syllables total words 0.39 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 MechanismStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started