Question: Write a program with a function named vowelsconsonants ( ) that accepts a string as a parameter and returns the number of vowels and the
Write a program with a function named vowelsconsonants that accepts a string as a parameter and returns the number of vowels and the number of consonants that the string contains. The application should let the user enter a string and should display the number of vowels and the number of consonants it contains.
Make sure you have a main function whereas you input your name and a string of more than characters.
NOTE: a space or period is not a vowel nor a consonant.
Make sure you pose proper questions and that your results explain what you have done.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
