Question: C++ Programming NO COPYING OTHERS WORK ONLY ORIGINAL WORK Write a function that accepts a pointer to a C-string as its argument. The function should

C++ Programming

NO COPYING OTHERS WORK ONLY ORIGINAL WORK

Write a function that accepts a pointer to 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 pointer to a C-string as its argument. This function should count the number of consonants appearing in the string and return that number. Demonstrate these two functions in a program that performs the following steps:

Make sure The user is asked to enter a string.

Make sure 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

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

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!