Starting from:

$20

ProgramDesign- Homework #1 Part 4 Solved

%) Find_specific_word

Write a program that can search for a specific word in a sentence. The first input will be the sentence and the second input will be the specific word. The output will be the number of how many times the specific word appears in the sentence. The length of the sentence will be less than 100000 words. The specific word will be case sensitive and need to be completely correct. Do not call strstr() and strcmp() functions in this program (If you use these functions, you will get zero points).  

 

Input Example 
Output Example 
How can I tell you how to do this thing right how 

Today will be a good day no 

 

More products