Create a program prompts the user to input a string


Discussion:

Q: Create a program that prompts the user to input a string. The output will be the total number of characters in the string, the total number of consonants in the string, and the total number of vowels in the string. Be sure to prompt for input and to label your output. The code needs to handle the string as a character array (C-string) and as a string data type so this means that you will see the same output twice, once for a C-string and once for a string data type.

 

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program prompts the user to input a string
Reference No:- TGS01937214

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)