answersLogoWhite

0


Best Answer

#include<stdio.h>

main()

{ char ch;

clrscr();

gotoxy(5,3); printf("*Identification of Consonant and Vowel letter*");

gotoxy(5,5); printf("*Please input a letter from A-Z in order to determine");

gotoxy(5,6); printf("if it is a CONSONANT or a VOWEL*");

gotoxy(5,8); printf("Enter a Letter: "); scanf("%c",&ch);

gotoxy(5,10); printf("Letter %c is a ",ch);

switch(ch)

{ case 'A':

case 'a':

case 'E':

case 'e':

case 'I':

case 'i':

case 'O':

case 'o':

case 'U':

case 'u': printf("VOWEL."); break;

default: gotoxy(5,10); printf("Letter %c is a CONSONANT.",ch); }

gotoxy(5,15); printf("Thanks you for trying this!"); getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What program in Turbo C that determines whether the input is vowel or consonant letter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


Is it a LED or an LED?

An LED. (el-ee-dee)You would put 'an' before the word LED because the letter L is pronounced with a leading vowel sound, as "EL". It is not a vowel that determines the usage, but the vowel sound. Similarly, the silent H in "hour" means that 1 hour is "an hour".The reverse is found in words such "union", where the YOU sounds like a consonant, and you say "a union."Sounded-out acronymsWhen an acronym is sounded out as a word, rather than individual letters, then it can use the article matching the word sound, as with a NASA probe or a NORAD radar station.


Enter a alphabet and cheak weater it is a vowel or not in java a program?

import java.util.Scanner; public class main(){ public static void main(String[]args){ Scanner er=new Scanner(System.in); char letter = " "; System.out.print("enter a letter"); letter = er.nextChar(); if (letter =='a' letter =='A' letter =='e' letter =='E' letter =='i' letter =='I' letter =='o' letter =='O' letter =='u' letter =='U'){ System.out.print("its a vowel"); } else { System.out.print("not a vowel"); } } }


Write a java program using switch case to find zodiac signs?

Let's say you want a method which will determine if the given character is a vowel, consonant, or other (non-letter). // Will return a String representation of what the given character is: // "vowel" "consonant" or "other" public static final String getTypeOfChar(final char c) { // since chars are an integer data type in Java, we can switch on them switch(c) { case 'a': // all of these cases "fall through" to the next non-case statement case 'e': // if any of them matches case 'i': case 'o': case 'u': return "vowel"; case 'b': // again, all of these cases fall through case 'c': case 'd': case 'f': case 'g': case 'h': case 'j': case 'k': case 'l': case 'm': case 'n': case 'p': case 'q': case 'r': case 's': case 't': case 'v': case 'w': case 'x': case 'y': case 'z': return "consonant"; default: // if we have no matches yet, do this return "other"; } }


How you find whether character is alphabet or not in java?

Use the Character.isLetter(char letter) method. // This line will return true Character.isLetter('a'); // This line will return false Character.isLetter('4');

Related questions

How can you tell whether to double the end consonant when forming the past tense of a verb?

Verbs spelled with a single vowel letter followed by a single consonant letter will double the consonant.


How you would you write a program in turbo c7 if letter is vowel or consonant?

You can write a program in Turbo C7 that takes a character as input and checks whether it is a vowel or a consonant by using a simple if-else statement. You can compare the input character with a list of vowels (a, e, i, o, u) and if it matches any of these, then it's a vowel; otherwise, it's a consonant. Print the result accordingly.


Is the letter w considered a vowel or a consonant?

In the English language the only letter that can be considered a consonant or a vowel is the letter Y. The letter W is a consonant.


Is the letter g a consonant or a vowel?

consonant


Can you give a sentence with consonant?

a consonant is a letter that is not a vowel.


What is the consonant for sleep?

The consonant for &quot;sleep&quot; is the letter &quot;s&quot;.


What is a cvc and ccvc word?

CVC stands for consonant-vowel-consonant, which refers to a three-letter word with a consonant-vowel-consonant pattern (e.g., cat, dog). CCVC stands for consonant-consonant-vowel-consonant and refers to a four-letter word with a consonant-consonant-vowel-consonant pattern (e.g., crab, trip).


Does germ have a hard or soft consonant for the beginning letter?

&quot;Germ&quot; has a soft consonant for the beginning letter.


What is a cosonant consonant?

A consonant is any letter other than a vowel.


Is the letter x a vowel or consonant?

X is always a consonant.


What is the sixth consonant?

The sixth consonant in the English alphabet is the letter &quot;F.&quot;


What is the middle consonant in trap?

The middle consonant in &quot;trap&quot; is the letter &quot;r.&quot;