Skip to content

burgechris/WordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WordCounter

This application counts the number of times a specified word appears in a sentence, 4 Oct 2019

By Christopher Burge

Description

This console application is for a word counter. A user is prompted for a sentence or phrase, as well as a word. The user is then returned the number of times that word is used in the sentence. The application accounts for puncutation, but it does not account for a plural version of that word.

Specifications

Behavior Input Output
The program will split a phrase into an array of words 'walk the dog' 'walk', 'the', 'dog'
This is the simplest possible behavior because it sets the sentence up for being able to iterate through each individual word
The program will count the times a word appears in a sentence 'the' and 'walk the dog' '1'
The program will not count partial matches 'the' and 'The dog went down there.' '1'
The program will look for multiple matches 'the' and 'walk the dog down the street.' '2'
The program will ignore punctuation 'dog' and 'Take the dog to play with another dog.' '2'

Setup/Installation Requirements

Technologies Used

C#, .NET

License

Open-source

Copyright (c) 2019 Christopher Burge

About

C# Friday Project 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages