Question: Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e',

Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e', 'i', 'o', 'u', and 'y' are vowels. For example, if the user enters the input "Harry", the program should print "The word contains 2 vowels and 3 consonants
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
