Find Jobs
Hire Freelancers

Word Counter

$10-30 USD

In Progress
Posted about 6 years ago

$10-30 USD

Paid on delivery
Given the text file: [login to view URL] 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. [login to view URL] the document [login to view URL] 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 [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; 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@[login to view URL] return new LinkedList(); } public static void main(String args[]){ try{ String contents = ""; Scanner in = new Scanner(new FileReader("src/[login to view URL]")); while([login to view URL]()) { contents += [login to view URL]() + "\n"; } WordCounter wc = new WordCounter(); Hashtable count = wc.count_words(contents); [login to view URL](count); LinkedList top20 = [login to view URL](count); for (Object item: top20) { [login to view URL](item); } } catch (Exception e){ [login to view URL]("Error " + [login to view URL]()); } } }
Project ID: 16502558

About the project

1 proposal
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $30 USD for this job
User Avatar
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 owner. So this will be base of our long term relationships.
$30 USD in 1 day
4.9 (49 reviews)
5.7
5.7

About the client

Flag of UNITED STATES
Los Angeles, United States
5.0
9
Payment method verified
Member since Mar 16, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.