Question: Assume letters A , E , I , O , and U as the vowels. Write a program that prompts the user to enter a

Assume letters A , E , I , O , and U as the vowels. Write a program that prompts the user to enter a string and displays the number of vowels and consonants in the string. Hint1: consonants is a non-vowel letter. Hence, non-letter characters need to be ignored from the counting process. Hint2: Use method gets() to read the input string gets(yourString) Use method toupper() to convert each read letter to its capital equivalent to simplify the letter checking process e.g., toupper(ch) will return A if ch= a Using C programming.

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!