Question: Write a program called count _ char _ type.c that reads a sequence of alphabetical characters from standard input and prints the count of consonants

Write a program called count_char_type.c that reads a sequence of alphabetical characters from standard input and prints the count of consonants and vowels in the sequence.
For example, if we have the sequence
I love COMP1511!
The vowels in the sequence are 'I''o','e','O',
the consonants in the sequence are 'l','v','C','M','P', and since '1','5','1','1','!' along with any whitespace are not in the English alphabet they are ignored.
In this case, the program would output:
Number of vowels: 4
Number of consonants: 5

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!