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.
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 |
- 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.
- Daniel Lira - devidra87@gmail.com
- C#
- .NET
- MSTests
- MVC
- Razor
- Mono
This software is licensed under the MIT license.
Copyright (c) 2018 Daniel Lira