Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

full code help please There is one service class for this assignment named TextAnalyzer as defined in the TextAnalyzer UML class diagram . Create this

full code help please

image text in transcribed

image text in transcribed

There is one service class for this assignment named TextAnalyzer as defined in the TextAnalyzer UML class diagram . Create this class based on the UML class diagram. The TextAnalyzer class has two constructors. Use the class constant Create the constructors in the to update the class variable in the constructor with no parameters. Use the constructor with one parameter to update the text block by calling the set method. This method must examine the text block in the class to determine the number of words. For our purposes a word will be defined as Code the getNumberOfWords method in something followed by a space. This will be true for all words in the the TextAnalyzer class. text block except the last word. Determine how many words exist and return that number from the method. This method must examine the text block in the class to calculate the number of vowels. A vowel is an upper- or lower-case a, e, i, o, the TextAnalyzer class. or u. The method must return the number of vowels. Code the getNumberOfConsonants This method must examine the text block in the class to calculate the number of consonants. A consonant is any letter that is not a vowel. The method must return the number of consonants. There is one application class for this assignment named TextAnalyzerApplication. Create this as a separate file from the TextAnalyzer class file. This will be an application class so it will have the main method. The code below goes in the TextAnalyzerApplication class. This is a separate class file with the main method. Use an object array to store the TextAnalyzer objects. Do NOT use some other data structure like a list (ArrayList, LinkedList, etc.). Create a menu with options to add a block of text, display statistics for each block of text, and list all blocks of text. Download this code Create and test the application menu. if you want a "shell" for a menu loop. Using this sample code is optional. Watch this video to see how the menu works . . (1:08 min). Watch this video to see how a new block of text is added. .(1:20 Test the menu option to add a line of text. min). The array must store a maximum of 100 TextAnalyzer objects. Make 100 a symbolic constant in your code. \begin{tabular}{l|l} Test the menu option to list statistics for & Watch this video to see how listing statistics for all blocks of text \\ each line of text. & works B(2:04min). \\ \hline Test the menu option to list all lines of & Watch this video to see how listing all blocks of text works B \\ text. & (00:56min). \\ \hline \end{tabular} Submit your assignment by zipping all the Eclipse project files into one file named TextAnalyzer.zip. Show me how to submit my project. \& (2:45 min). Assignments cannot be submitted late. UML Class Diagram for the TextAnalyzer Class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

DEFINE HRIS and describe its main components.

Answered: 1 week ago