Question
Use an instantiable class in java that prompt the user to provide the number of paragraphs they would like to enter, and then prompt the
Use an instantiable class in java that prompt the user to provide the number of paragraphs they would like to enter, and then prompt the user to provide those paragraphs by reading one paragraph at a time from the keyboard, and store those paragraphs in an array of paragraphs. Next, call/invoke/use a method defined to compute the numbers according to the functionality below.
The method should traverse the array of paragraphs and calculate the total number of declarative sentences, interrogative sentences, and exclamatory sentences per paragraph.
The total number of sentences computed per paragraph should be stored in a 1 dimensional array of numbers. The method should return the computed array of numbers
. Finally, the application should display on the screen the numbers computed by the method.
Step 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