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

  Approximate the volume of cheese in a rectangular hunk

You will create a program that will approximate the volume of cheese in a rectangular hunk of Swiss cheese. For this approximation you will assume that the holes in the Swiss cheese are of two types: spherical bubbles (all of the same size) or cyl..

  Create a program using a gui interface

In your lab5 folder, compile the file that is a starting point for this assignment. The listing and image of this Java class is on the bottom of this lab description. You can create the programs by cutting and pasting.

  Loops-for loop, while loop, and do while loop

There are 3 kinds of loops-for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate

  Implementing a relatively simple text-compression scheme

You will be implementing a relatively simple text-compression scheme - It should run from the command line.

  These are more specialized versions of the pizzaorders you

your pizza shop expands and now handles delivery orders and sit down orders in a restaurant setting. there are

  Java application to carry out additions and subtractions

Design a Java application to carry out additions and subtractions for numbers of any length. A number is represented as an object which includes a sign and two strings for the whole and decimal parts of the number.

  Write java program to reads ten values from user

Write the java program which reads 10 values from user and store them in 1 daimantion array. your program will ask the user wich operation he wants to perform:

  Learn how expressions can be evaluated at run-time

Write a Java program (a collection of Java classes) including a class named ExpressionCalculator that contains a static main method. This main method will prompt the user to enter a constant expression.

  Write java program to read present basic hourly wage

Write down a java program which will input 1. Read present basic hourly wage. Read in workers fist name and socond name.

  Displays the stored array values on the screen

Displays the stored array values on the screen using WriteInt - Prompts the user for integer input a dozen times

  Assignment covers the subsequent eight topics and explore

assignment covers the subsequent eight topics and explore the implementation of memory management processes and

  Uml exercise

UML Exercise: Automated Teller Machine (ATM),   1. To allow authorized card holders to make transactions,   Brief Summary of Requirements:

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