Write a program to determine whether the input character is a vowel or consonant. Input and Output Format: Input consists of a single character. Output consists of a string -- "Vowel" /"Consonant" /"Not an alphabet" Refer sample input and output for formatting specifications. All text in bold corresponds to input and the rest corresponds to output. Sample Input and Output 1: Enter a character a Vowel Sample Input and Output 2: Enter a character Consonant Sample Input and Output 3: Enter a character # Not an alphabet

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.2: Formatting Numbers For Program Output
Problem 10E
icon
Related questions
Question

QUESTION PROVIDED IN ATTACHMENT.

USE ONLY SHELL SCRIPTING WHEN MAKING SOLUTIONS.

Write a program to determine whether the input character is a vowel or consonant.
Input and Output Format:
Input consists of a single character.
Output consists of a string --- "Vowel" /"Consonant" / "Not an alphabet"
Refer sample input and output for formatting specifications.
All text in bold corresponds to input and the rest corresponds to output.
Sample Input and Output 1:
Enter a character
a
Vowel
Sample Input and Output 2:
Enter a character
Consonant
Sample Input and Output 3:
Enter a character
Not an alphabet
Transcribed Image Text:Write a program to determine whether the input character is a vowel or consonant. Input and Output Format: Input consists of a single character. Output consists of a string --- "Vowel" /"Consonant" / "Not an alphabet" Refer sample input and output for formatting specifications. All text in bold corresponds to input and the rest corresponds to output. Sample Input and Output 1: Enter a character a Vowel Sample Input and Output 2: Enter a character Consonant Sample Input and Output 3: Enter a character Not an alphabet
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr