Word Counter

Word Count Program Using C#, .NET and MVC, November 30, 2018

By Daniel Lira

Description

A C# application that allows users to enter both a sentence and a word, the program will then count the occurences of the word in said phrase.

Specs

Spec Input Output
Program can identify user's inputted word "dogs" Your word is: dogs
Program can identify user's inputted sentence "I love dogs" Your sentence is: I love dogs
Program can identify when the word is in the sentence "dogs", "I like dogs" 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 does not count words contained in other words "read", "is everyone ready?" Your word does not appear in your sentence

Setup/Installation Requirements

  • Clone this repository
  • Download .NET Core 2.1.3 SDK and .NET Core Runtime 2.0.9 and install them.
  • Change into the work directory:: $ cd WordCounter.Solutions
  • 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 Music.Tests folder and use these commands: $ dotnet restore and dotnet test.

Support and contact details

Technologies Used

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

License

This software is licensed under the MIT license.

Copyright (c) 2018 Daniel Lira