Question: Please show how to write this code thanks. Write a program that: Asks the user to enter a word. If word starts with a vowel,
Write a program that: Asks the user to enter a word. If word starts with a vowel, the program prints that it starts with a vowel. If word starts with a consonant, the program prints that it starts with a consonant. If word starts with neither a vowel nor a consonant (e.g., it starts with a number, or a punctuation character, or it is the empty string), the program prints that it starts with neither a vowel nor a consonant. Example Program Run: Please enter a word: 543 543 starts with neither a vowel nor a consonant. Example Program Run: Please enter a word: Airplane Airplane starts with a vowel. Example Program Run: Please enter a word: cat cat starts with a consonant
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
