Question: python Jack just completed the program for the Flesch text analysis from this chapters case study. His supervisor, Jill, has discovered an error in his

python

Jack just completed the program for the Flesch text analysis from this chapters case study. His supervisor, Jill, has discovered an error in his code. The error causes the program to count a syllable containing consecutive vowels as multiple syllables.

Suggest a solution to this problem in Jacks code and modify the program so that it handles these cases correctly.

An example text and the program input and output is shown below:

example.txt

Or to take arms against a sea of troubles, And by opposing end them? To die: to sleep.

Enter the file name: example.txt The Flesch Index is 102.045 The Grade Level Equivalent is 1 3 sentences 18 words 21 syllables 

python Jack just completed the program for the Flesch text analysis from

ramming Exercise 4.11 Instructions Jack just completed the program for the Flesch text analysis from this chapter's case study. His supervisor, lill, has discovered an error in his code. The error causes the program to count a syllable containing consecutive vowels as multiple syllables. Suggest a solution to this problem in Jack's code and modify the program so that it handles these cases correctly. An example text and the program input and output is shown below: example.txt Or to take arms against a sea of troubles, And by opposing end them? To die: to sleep Enter the file nane: example.txt The Flesch Index is 102.045 The Grade Level Equivalent is 1 3 sentences 18 words 21 syllables

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!