/WordCounter.Solution

Epicodus Friday Project | C#/.Net console application utilizing the MSTest framework to run tests within WordCounter.Solution

Primary LanguageC#

Word Counter

Word Counter terminal application, Mar. 3, 2020

By Benjamin Thom

Description

An application that gathers both a word and sentence from a user, then checks how frequently the word appears in the sentence (checks for full word matches only).

Project Specifications

Behavior Input Output
A user inputs a sentence and the application collects the response "the quick brown fox jumps over the lazy dog" "the quick brown fox jumps over the lazy dog"
The application converts the user's sentence into an array of strings "the quick brown fox jumps over the lazy dog" { "the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog" }
A user inputs a word and the application collects the response and if the user's word is a full word match, the application displays the user word's frequency "the" "the"
The application calculates the frequency the user's word (full word matches only) within the user's sentence "the", "the" 2
A user inputs a word and the application collects the response and if the user's word is not included in the user's sentence or is a partial match, the application displays a word frquency of 0 user sentence: "there are big mountains in Montana", user word: "the" 0

Setup/Installation Requirements

In Terminal:

  • Navigate to where you want this application to be saved, i.e.: cd desktop
  • Clone the file from GitHub with HTTPS git clone https://github.com/benjamin-thompdx/WordCounter.Solution.git
  • Open file in your preferred text editor
  • On Mac: open -a {your text editor} WordCounter.Solution
  • On Windows: WordCounter.Solution

Download Manually:

Note For Editors:

  • Download the .NET Core SDK Software Development Kit

  • Open the .Net Core SDK file and install

  • To confirm installation was successful, run the $ dotnet --version command in your terminal

  • Install dotnet script, run the $ dotnet tool install -g dotnet-script command in your terminal

  • Restart your terminal to complete installation, and run the $ dotnet run command to run application within your terminal - Note: To exit, simply press Ctrl + C

Known Bugs

No known bugs at this time.

Support and contact details

Have a bug or an issue with this application? Open a new issue here on GitHub.

Technologies Used

  • Git
  • C#
  • .NET Core 2.2
  • dotnet script
  • VS Code

License

This webpage is licensed under the MIT license.

Copyright (c) 2020 Benjamin Thom