answersLogoWhite

0

in semi-pseudo code:

get character

//convert uppercase letter to lowercase letter

if( 65 <= (int) character <= 90)

character ^ 32

//check that a letter was given

if( 97 <= (int) character <= 122)

{

switch(character)

{

case a:

case e:

case i:

case o:

case u:

output "vowel"

break;

case y:

output "consonant and/or vowel"

break;

default:

output "consonant"

break;

}

}

else

output "not a letter"

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a program to enter a character and it will tell the character etered?

{char a;...cout > a;cout


How do you write a c program to read two character from keyboard nd sot them in alphabetical order?

Every character in C++ is basically belongs to short. You can convert entered characters to short, compare their values and according to the values sort them in alphabetical order.


What is an aggregate constant?

An aggregate constant is a nonscalar constant which value never change or are not changed during execution of the program.


The Social Security program is very secure and continues to grow at a constant rate.?

No, the social security program is not secure and it does not continue to grow at a constant rate.


Is there a website with an online program that will identify parts of speech from an entered sentence?

Google "Parts of Speech Level A 2.1.5". This software labels parts of speech like you are looking for. There is a demo as well as well as full software online for which you will have to pay.


Is it true the Social Security program is very secure and continues to grow at a constant rate?

No, the social security program is not secure and it does not continue to grow at a constant rate.


What is the output displayed by the following program when the data entered are 5 and 7?

Impossible to say without seeing the program's source.


Difference Between Variable And constant?

A constant and variable are variations of data types. int a; is a variable and its value can be changed by the program as the program runs. const int b; is a constant with a fixed value and will have its value set and may not be changed by the program as as the program runs. All data types may be declared as a constant. Variable Value Can Be Changed By You In Programme.


What is a named constant?

A named constant is a value that does not change during the execution of a program. It is assigned a name or identifier that represents the value, making the code more readable and easier to maintain. Named constants are typically declared at the beginning of a program and are used when a value needs to remain constant throughout the program's execution.


How do write a program to check vowel or constant in visual basic?

Hi Friends I have posted a small program for checking vowels in console in vb.netIf there is any corrections please let me know...........Module Module1Dim a As CharSub Main()Console.WriteLine("Enter Alphabets")a = Console.ReadLine()If a = "a" Or a = "e" Or a = "i" Or a = "o" Or a = "u" Or a = "A" Or a = "E" Or a = "I" Or a = "O" Or a = "U" ThenConsole.WriteLine("Entered Leter Is Vowel")ElseConsole.WriteLine("Entered Letter is Not Vowel")End IfEnd SubEnd Moduleby,S . Jai Gannesh(AJ)


What show does Teto and Miku come from?

The character Teto comes from the program known as UTAU. The character Miku comes from the program known as Vocaloid.


Write a program to adentify whether a character entered by a user is a vowel or a consonant?

You can check the value of a character by using if statements.Also, note that this code does not check for capital letters./* code */#include int main(){char c;c = getc(stdin);if (c 'o') {/* If the character is a vowel, this code will be executed. */} else if (c >= 'a' && c