c#: identify character as vowel, consonant, or even number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srinithi
    New Member
    • Aug 2008
    • 1

    c#: identify character as vowel, consonant, or even number

    1.write a program to identify whether a character entered by a user is a vowel or a consonant?
    2.write a program to identify whether the number entered by user is even or odd?
    3.write a program to accept a number from the user and display all the prime numbers from zero up to the number entered by user?
    please i need the answers........ its very urgent
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Note that this is the C and C++ forum while your title suggests that you want
    a C# program. Also note that this site is not a free homework service.

    kind regards,

    Jos (moderator)

    Comment

    • balabaster
      Recognized Expert Contributor
      • Mar 2007
      • 798

      #3
      Originally posted by JosAH
      Note that this is the C and C++ forum while your title suggests that you want
      a C# program. Also note that this site is not a free homework service.

      kind regards,

      Jos (moderator)
      I doubt too much that anyone is going to provide much assistance given the way you've phrased your question. Some pointers:

      Look up the Keypress event on the textbox you're using to enter the characters Keys.KeyCode and Select Case ... they should get you started

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        From the Posting Guidelines:
        Originally posted by Posting Guidelines
        This site is not a place where you can get your homework and course work done for you. Ignoring the questionable morals of getting someone else to do your work towards a formal qualification you will learn a lot more by attempting the problem yourself, then asking for help with the bits that are not working. You will be more likely to get help if you appear to have made an attempt at the problem yourself.
        The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve

        MODERATOR

        Comment

        Working...