Question: Write a C program to find out the number of words, spaces, vowels, consonants, along with special characters in a sentence to break it into

  1. Write a C program to find out the number of words, spaces, vowels, consonants, along with special characters in a sentence
  2. to break it into the following functions (these exact functions must be used):

  3. a function to find the number of words and return that to main()
  4. a function to find the number of spaces and return that to main()
  5. a function to find the number of vowels and return that to main()
  6. a function to find the number of consonants and special characters and return that to main()
  7. Output should be
  8. Enter a sentence: My cats name is Bella.

    You sentence includes:

    Number of words: 5

    Number of spaces: 4

    Number of vowels: 6

    Number of consonants and special characters: 13

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 Databases Questions!