Question: the code is in java This assignment requires you to design and implement a Java application which performs text analysis, calculating a range of statistics

the code is in java

This assignment requires you to design and implement a Java application which performs text analysis, calculating a range of statistics on a piece of text. You must also document the testing of the program. The specification for the assignment is as follows:

1. The program runs from the command line and has a loop allowing entry of a string of characters or termination of the application.

2. From its initial state, the user enters a piece of text on the command-line, and presses the return" key. The program then performs the analysis and displays the result. Both what analysis and how you display it are up to you:

a. For a basic" mark, you might count the frequencies of the letters in the text and show the results in textural form (i.e., just list the frequencies). Note that you should ignore space, punctuation and other (non-alphabetic) characters.

b. To qualify for a mark of 50% or greater, ability to load and process text files is required in addition to direct processing of text (you will have to add some way of distinguishing between text-for-analysis and text-as-file-name).

c. In order to qualify for a higher mark (60%+), you must display the information in some graphical form (i.e. the frequencies are represented not as characters but as a graph - this may be drawn using characters). By default we would anticipate that you construct (in a manner chosen by yourself) a bar-chart of the data. Please note that you are NOT expected to use Java or Processing GUI functions. Instead, we expect you to use character output to display a bar chart.

d. For a first-class mark, you should modify the program so that it also offers other analytic functions, such as the frequency of lengths of words, or the number of punctuation characters.

3. All submissions must be able to demonstrate the operation of the same lines of code with fixed test-data (i.e., with the data being set internally as variables, not entered by the user). This can be achieved by having (a minimum of) three classes:

a. A main-method class to manage interactive input;

b. A second main-method class to specify fixed test input;

c. A common method which cannot be accessed directly from the command-line to do the processing and return the results.

4. All submissions must include evidence that the code has been designed. This will take the form of stepwise refinement of pseudocode for the major methods of the class carrying out the analysis of the text (there is no need to provide analysis of the main methods, which should be a simple wrapper).

5. For any submission, you must in addition supply suitable test cases (including external conditions and valid and invalid equivalence classes) which will ensure that the code is to the specification above. Your assignment submission should include a PDF file, listing test cases you used and the responses generated.

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!