Count Consonants


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Count Consonants

  1. #1
    Join Date
    Mar 2008
    Posts
    6

    Count Consonants

    Hey guys new to the forums But i need some serious help... I have this assignment thats pretty tough but you guys should know how to help
    Thanks for any help in advance.

    Write a program that reads a list of characters:
    eg. ubccdddwfreshawbgtiijhktrocbfgrtwghdddguppgrkitt. etc.
    inputted from the keyboard one character at a time starting with a vowel (The vowels are a, e, i, o, and u) until a blank {spacebar} character is issued.

    Having read in the list (or during the reading of the list) the program is to find the longest continuous occurrence of consonants, outputting the vowels between which this occurs and the length of this string of consonants.

    {In the example above, the output would be 13 o u}

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    You need to use thread titles that are a bit more meaningful with respect to your question.

    You have two new threads here. They both had the same thread title which had nothing what so ever to do with your question. When I first looked at them, I thought they were duplicate threads (which happens) and I almost deleted this one.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  4. #4
    Join Date
    Mar 2008
    Posts
    6
    Can you please change the title yet again to something more appropriate as i am not counting consonants rather i am counter the letters in between vowels. These happen to be consonants

    Thanks again

  5. #5
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    There are only two types of letters. Vowels and Consonants.

    If a letter is between a vowel, and it is not a consonant, what is it?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  6. #6
    Join Date
    Mar 2008
    Posts
    6
    very true but im counting the consonants in between the vowels and end it when a space bar is pressed

  7. #7
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    It doesn't matter where the consonants are, you are still counting them. What about the code in the link I posted isn't working for you?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Runtime Error 3141 and One Record Only
    By jinesusa in forum VB Classic
    Replies: 3
    Last Post: 01-24-2008, 07:57 AM
  2. Query works in Access, but not VB .NET
    By corygibbons in forum Database
    Replies: 6
    Last Post: 07-11-2007, 09:30 PM
  3. Help Semantic Tableaux Algorithm
    By dina86 in forum Java
    Replies: 0
    Last Post: 04-20-2007, 03:13 PM
  4. need to return total record count, but here is the trick...
    By barbarosa80503 in forum VB Classic
    Replies: 2
    Last Post: 10-28-2005, 04:33 PM
  5. Re: word count!!! Faster, Leaner, Meaner!
    By James World in forum .NET
    Replies: 0
    Last Post: 08-13-2001, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center