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

Questions Cloud

Describe life under the division of labor : Compare and contrast the way that Marx and Weber describe life under the division of labor and the capitalist mode of production
What does sampling distribution mean : What does sampling distribution mean and how is a sampling distribution of the mean obtained?
Why may the reputation mechanism break down under monopoly : Why may the reputation mechanism break down under monopoly? Why can the reputation mechanism be reinforced by competition?
What is the simple logic of warranties as a quality signal : What is the simple logic of warranties as a quality signal? What limits the attractiveness of warranties as a signal for high-quality firms?
Create a java class namedtextprocessorgui : Create a Java class namedTextProcessorGUI. Provide a main() function that creates and displays an instance ofTextProcessorGUI. I recommend you write this class as a subclass ofJFrame.
How can a random sample be obtained : Using a table of random numbers, obtain a random sample of 10 from the 95 employees of a plant that were out sick during a particular day.
Lujack co. held the following short term available : On December 31, 2013, Lujack Co. held the following short term available for sale securities.
Do repeat purchases facilitate or hinder advertising signals : Consider a market in which product quality does not affect marginal costs. Do repeat purchases facilitate or hinder advertising signals?
Requests the user to enter a value : Requests the user to enter a value, and searches the array to find a matching value. If there is a match, display Match; otherwise, display No Match.Display only one message at the end of the search.Write the code so the search stops when a match is ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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