Create a java class namedtextprocessorgui

Assignment Help JAVA Programming
Reference no: EM13896103

A class named TextProcessor. This class does the heavy lifting of opening the file, reading it, standardizing the text, and tokenizing it. Use this class to accomplish the following requirements:

  1. Create a Java class namedTextProcessorGUI.
  2. Provide a main() function that creates and displays an instance ofTextProcessorGUI. I recommend you write this class as a subclass ofJFrame.
  3. Provide a button that, when pressed, causes aJFileChooser dialog to appear. Use this dialog to allow the user to select a text file.
  4. After selecting the file, your code will create an instance of TextProcessor and then use itsprocessFile() method.
  5. After theprocessFile() method completes, display in your window:
    1. The name of the selected file.
    2. The number of unique words in the file as provided byTextProcessor.
    3. The total number of words in the fileas provided byTextProcessor.
    4. The average number of times a word appears in the fileas provided byTextProcessor.
    5. The most frequent words (it could be a tie)as provided byTextProcessor.
    6. The COUNT of words that appear onceas provided byTextProcessor.
    7. The COUNT of words that appear twiceas provided byTextProcessor.
    8. The COUNT of words that appear three timesas provided byTextProcessor. 

Your window must be appropriately sized for its contents. Further, your program must terminate when I press the "DISMISS" button, i.e. the X in the upper right corner on a Windows system.

When I grade your homework, I will use two different text files. Your code must correctly handle the use of one text file (show the numbers for the first file), then the use of a second text file (show the numbers for the second file).

I recommend you pick a few books from Project Gutenberg. Works by Oscar Wilde, Lewis Carroll, and Mark Twain are good test data; easy to get, moderate in length, and they use pretty standard vocabulary. But you can use whatever test data you want.

This exercise is about creating a GUI. This exercise is NOT about handling a file and the text within. 

An answer by sometime (doesn't matter when) tomorrow is needed

Reference no: EM13896103

Write a program that reads a number in feet

Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters. INPUT and PROMPTS.The program prompts for the feet wit

Write a program to compute statistics on a list of exam

You are to write a program to compute statistics on a list of exam scores, the Exam Statistics Program (ESP). The input is the name of a text file that contains the number of

Program to convert fahrenheit to celsius

Layout the planned structure and steps to accomplish the individual programs. Ensure brief, accurate and complete detailed instructions in the form of pseudocode, not code.

Redesign the grading program as an object-oriented design

Redesign the grading program as an object-oriented design. We will start with a simple Student class. The student will have a name, an id (as a String) and a set of grades (

Design a program that does some polynomial operations

Implement polynomial addition by using an add() method, so you could write in program - Build a polynomial (linked list) from a file and the other from keyboard input (pairs o

Program to find maximum-minimum of sequence of values

Common task which should be done in loop is to find maximum and minimum of sequence of values. File contains program which reads in sequence of hourly temperature

A recently formed committee to deal with numerous

Scenario: You are a member of a recently formed committee to deal with numerous complaints against police and correction officers in your town and are asked to determine if th

Design greedy algorithm to solve activity selection problem

Write a program to implement the Boyer-Moore algorithm. Your program should ask the user to enter a text and a pattern, then output. Design a greedy algorithm to solve the ac


Write a Review

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd