Word Counter

Given the text file: [url removed, login to view] attached,

Provide a dictionary that provides the word count for the words of the text of the famous FDR speech. The count should be case insensitive and special characters such as double quotes and commas should be removed so that "day,", "day" and "Day" count towards the same word.

[url removed, login to view] the document

[url removed, login to view] the document

Source: Franklin D. Roosevelt, Inaugural Address, March 4, 1933, as published in Samuel Rosenman, ed., The Public Papers of Franklin D. Roosevelt, Volume Two: The Year of Crisis, 1933 (New York: Random House, 1938), 11–16.


Add Authors here for grading


import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

public class WordCounter {

public Hashtable count_words(String contents){

Hashtable count = new Hashtable();

// Do work here

return count;


public LinkedList top20(Hashtable count)


// TODO: Return top 20 words on the songs,

// cleaned up removing special characters ",' and in lowercase

// For example "A should be converted to a

// (singular and plural are ok to have as duplicates)

// Return value can be an array or LinkedList

// Each element of the array can be a Hashtable with only one element sorted where the highest element is at the top

// For example: [{the=20}, {a=10}, {boy=10}, {news=5}.....]

// Deadline Aug 17 before the class email to jcrogel@[url removed, login to view]

return new LinkedList();


public static void main(String args[]){


String contents = "";

Scanner in = new Scanner(new FileReader("src/[url removed, login to view]"));

while([url removed, login to view]())


contents += [url removed, login to view]() + "\n";


WordCounter wc = new WordCounter();

Hashtable count = wc.count_words(contents);

[url removed, login to view](count);

LinkedList top20 = [url removed, login to view](count);

for (Object item: top20)


[url removed, login to view](item);


} catch (Exception e){

[url removed, login to view]("Error " + [url removed, login to view]());




Habilidades: Java

Veja mais: word frequency counter, character counter, website word count, word count safari, word count in word, count the words in a file, word count reducer, word counter google docs, word counter textarea, word counter limit textarea, textarea word counter, word counter fckeditor, adding word counter fck editor, fckeditor word counter, javascript textarea word counter, url word counter tool, word counter javascript alert max reached, javascript word counter textarea limit, website word counter, website word counter translation

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #16502558

Concedido a:


Hello, client. I have developed your project. I can complete it in one hour. Please award me. Best regards.

$15 USD em 1 dia
(12 Comentários)

2 freelancers estão ofertando em média $23 para esse trabalho


I am here freelancer first to discuss the details of Word Counter then i can sure about my price and the deadline. My way of working is not only to complete but also to provide enough understanding to the project o Mais

$30 USD em 1 dia
(33 Comentários)