This program was created for the Eighth Friday project assigned to the students of Epicodus Seattle May 28th class. This is a program that will prompt the user to input a word and a sentence. The program will check how many times that word appears in the setence.
- clone repository off of Github
- go to parent directory using terminal for Mac, git.bash for Windows
- type in 'dotnet run' to run the program
-
Spec: The program returns a false. * Input: "The dog barks at the kids", "cat" * Output: "false"
-
Spec: The program returns a true * Input: "The dog barks at the kids", "dog" * Output: "true"
-
Spec: The program returns a false when string is present within a word * Input: "cathedral", "cat" * Output: "false"
-
Spec: The program returns the number of times the word appears * Input: "cat cat dog dog cat dog cat dog dog cat dog", "dog" * Output: "6"
-
Spec: The program will ignore case * Input: "Cat cat cAt CaT", "cat" * Output: "4"
-
Spec: The program will check for spaces in the second string * Input: "How do you do, ma'am?", "do you" * Output: "Please enter one word to check. No Spaces please."
For any questions about the website, code or content, please contact me at tlbhibiki@gmail.com
Written in C#
All code are created and owned by Aaron Whang
Copyright (c) 2019 Aaron Whang