/WordCounter.Solution

C# application that will count the number of times a given word is present in a given sentence.

Primary LanguageC#

Word Counter Project

Independent Project for C# week 1 and 2, 11.30.2018

By Kenny Wolfenberger

Description

A C# application that takes both a word and a sentence from a user. It then checks how frequently the word appears in the sentence and returns this information to the user.

Setup/Installation Requirements

  • Clone this repository: $ git clone https://github.com/kwolfenb/WordCounter.Solution.git
  • To edit the project, open the project in your preferred text editor.
  • To run the program, first navigate to the location of the WordCounter file then run dotnet restore, dotnet build, and dotnet run.
  • When program is running open a web browser and go to localhost:5000 to view program.
  • To run the tests navigate to the WordCounter.Tests folder and use these commands: $ dotnet restore and dotnet test.

Support and contact details

Kenny Wolfenberger - kennywolfenberger@gmail.com

Specs

Spec Input Output
Program can identify user's inputted word "tea" Your word is: tea
Program can identify user's inputted sentence "I like coffee." Your sentence is: I like coffee.
Program can identify when the word is not in the sentence "tea", "I like coffee." Your word does not appear in your sentence
Program can identify when the word is in the sentence "coffee", "I like coffee" Your word appears in your sentence 1 time
Program counts the number of times the word is in the sentence "car", "My car is faster than your car" Your word appears in your sentence 2 times
Program counts words that are next to punctuation marks "hungry", "Are you hungry?" Your word appears in your sentence 1 time
Program does not count words contained in other words "read", "is everyone ready?" Your word does not appear in your sentence
Program records history of games played click: "Back to instructions and game history" See "Previous game results" section
Program clears game history upon request click: "Clear Game History" "Previous game results" section is now empty

Technologies Used

  • C#
  • .NET
  • MSTests
  • MVC
  • Razor
  • Mono

License

This software is licensed under the MIT license.

Copyright (c) 2018 Kenny Wolfenberger