Find Jobs
Hire Freelancers

Word Counter

$10-30 USD

Σε Εξέλιξη
Αναρτήθηκε περίπου 6 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
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]()); } } }
Ταυτότητα εργασίας: 16502558

Σχετικά με την εργασία

1 proposal
Απομακρυσμένη Εργασία
Ενεργός/ή 6 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
1 freelancer δίνει μέση προσφορά $30 USD για αυτή τη δουλειά
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 σε 1 ημέρα
4,9 (49 αξιολογήσεις)
5,7
5,7

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Los Angeles, United States
5,0
9
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Μαρ 16, 2018

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.