Problem

Vowels and Consonants Write a function that accepts a C-string as its argument....

Vowels and Consonants

Write a function that accepts a C-string as its argument. The function should count the number of vowels appearing in the string and return that number. Write another function that accepts a C-string as its argument. This function should count the number of consonants appearing in the string and return that number.

Demonstrate the two functions in a program that performs the following steps:

1. The user is asked to enter a string.

2. The program displays the following menu:

A) Count the number of vowels in the string

B) Count the number of consonants in the string

C) Count both the vowels and consonants in the string

D) Enter another string

E) Exit the program

3. The program performs the operation selected by the user and repeats until the user selects E, to exit the program.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT