: PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT
#1

Code:
Algorithm:-
         begin
         if  a,e,I,o,u      or   A,E,I,O,U
         then
         printf “It is a vowel”
         else
         printf “It is a consonant”
         end

1.    LEX program to count number of vowels and consonants in a given input string

%%
[aeiouAEIOU] {printf(“it is vowel”);}
[a-zA-Z] {printf(“it is consonant”);}
%%
main()
{
yylex();
}
int yywrap()
{
return 1;
}


Output:

$./a.out
a
it is a vowel
g
it is a consonant
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: identify ied powerpoint, linux count vowels, seminar topics given to degree student, identify visual indicators of an improvised device, identify hindi font, lex program to count no of vowels and consonants, lex code to count number of vowels,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  VHDL program for Booth’s Multiplier smart paper boy 2 5,652 20-04-2013, 11:59 AM
Last Post: T
  Program in “LEX” to count number of vowels and consonants seminar class 2 9,623 22-03-2013, 10:20 AM
Last Post: computer topic
  Program in “LEX” to count number of Identifiers and Keywords seminar class 1 4,841 28-01-2013, 03:21 PM
Last Post: Guest
  To predict Exons in the given nucleotide sequence using the HMM gene tool. smart paper boy 0 1,236 10-08-2011, 02:50 PM
Last Post: smart paper boy
  To predict Open Reading Frames (ORFs) in the given nucleotide sequence using the ORF smart paper boy 0 1,417 10-08-2011, 02:49 PM
Last Post: smart paper boy
  To predict the genes in the given nucleotide sequence using the GenScan tool. smart paper boy 0 1,189 10-08-2011, 02:46 PM
Last Post: smart paper boy
  To perform multiple sequence alignment between the given sequences using Clustalw2 to smart paper boy 0 1,392 10-08-2011, 02:44 PM
Last Post: smart paper boy
  To perform global alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,350 10-08-2011, 02:43 PM
Last Post: smart paper boy
  To perform local alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,285 10-08-2011, 02:41 PM
Last Post: smart paper boy
  PROGRAM TO RECOGNIZE A STRING WITH THREE COSECUTIVE 0’s smart paper boy 0 1,663 10-08-2011, 11:44 AM
Last Post: smart paper boy

Forum Jump: