Question: 3. (40 pts) Design a C program to find the number of times the string bear appears in an input text file that contains only

 3. (40 pts) Design a C program to find the number

3. (40 pts) Design a C program to find the number of times the string "bear" appears in an input text file that contains only words. Capital and lower case letters are considered to be the same, such as the word "Bear" or "bear" are the same as the word "bear". Display the number of occurrences on the screen. Example: Input file: The beaker and the bear are greybEArDs. The word "bear" appears three times. b) The program should count if the number of vowels and consonants of the text. [ 10 points out of the 40 points for the exercise ] Input: The Ethernet is popular. Nr of vowels: 8; Nr of consonants: 12. Use comments in your code to explain your solution. Make sure your explanations work for any input file, not just for the examples above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!