This console application will accept a word & sentence from the user to then count the number of times that word was used in the sentence
This application is already linked to a Program.cs, .csproj, & .gitignore, but will need a .NET 3.1 or 2.2 download
Make sure you have git version control installed on your computer.
- Click the green 'Clone or Download' button and copy the link / download the zip
- Open terminal and type... or skip to #4 if you downloaded the zip
Windows
cd desktop
Mac & linux
cd ~/Desktop
- in terminal type 'git clone {link to repository} '
git clone {link to repository}
- If you downloaded the zip then extract all onto your desktop
- Open the folder with VSC or an equivalent
- Download .NET Core Sdk 2.2 & Run dotnet -- version in the terminal to confirm installation
- In the terminal Run dotnet tool install -g dotnet-script
- Open project & Run dotnet run
- Enjoy
Behavior | Input | Output |
---|---|---|
The program will welcome the user | 'dontnet run' | 'Welcome to WordCounter' |
The program will accept user input for the word | 'wood' | 'holds response data' |
The program will accept user input for the sentence | 'How much wood could a wood chuck, chuck if a wood chuck could chuck wood' | 'holds response data' |
The program counts the number of times the word is used in the sentence | 'How much wood could a wood chuck, chuck if a wood chuck could chuck wood' | '4' |
The program displays the word count to the user | 'N/A' | 'wood was said 4 times' |
N/A - 5/8/2020
WiseFool92.github.io/WordCounter
Email: watkins92@gmail.com
-
-
source.unsplash.com will return a random image at a desired size by simply calling the size after the url followed by a '?' and a keyword. Example below
-
http://unsplash.it/500/500 - This will just return a random image the size of 500x500
-
This project is licensed under the MIT License
Copyright (c) 2020 Nathan Watkins-Hoagland