Giter Site home page Giter Site logo

stayready11-word-count's Introduction

Word Counter

Objectives

  • Display your understanding of Hashmaps
  • Import external text file and process it's contents
  • Unit Test

Directions

This lab involves reading in a text file, word by word. Each unique word will be stored once and only once in a hash map. Each additional occurrence of that word found in the text will cause an associated counter to be incremented. Once all the words have been counted output all the words in the map with their occurences.

Create an object that can be except a text file location as well as display the result of the word count in alphebetical order. Also display the count of unique words, most/least used words and the longest word. Finally create a method that accepts a string value and return the word count of that string vale.

You will find a text file in the root directory of this repository for you to use but your program should be able to work on any text file.

Once you have completed the class(es) above, use the main() to allow a user to enter the location of a text file for the word counter to execute on. This should display the results to the user, as well as, allow the user to enter a string value and have the program return the amount of occerences of the string.

stayready11-word-count's People

Contributors

lmor989 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.