Find Jobs
Hire Freelancers

Word Counter

$10-30 USD

W trakcie realizacji
Opublikowano około 6 lat temu

$10-30 USD

Płatne przy odbiorze
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]()); } } }
Identyfikator projektu: 16502558

Informację o projekcie

1 oferta
Zdalny projekt
Aktywny 6 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
1 freelancer składa ofertę o średniej wysokości $30 USD dla tej pracy
Awatar Użytkownika
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 w 1 dzień
4,9 (49 opinii)
5,7
5,7

O kliencie

Flaga UNITED STATES
Los Angeles, United States
5,0
9
Zweryfikowana metoda płatności
Członek od mar 16, 2018

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.