Thread: Need Help

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Need Help

    I need all projects that work on match array
    ex, find the first even and the first odd number in array
    if we have an array like (2,1,1,6,3,5,8,5,3)
    if the even number = the sum of next 2 odd number return true else return false
    please need the answer sooooooooon

  2. #2
    Registered User
    Join Date
    Mar 2009
    Location
    england
    Posts
    209
    What part are you specifically have problems with? Perhaps you should post the code of your attempt so far.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    129
    This is clearly a homework question, however the answer is in the question. You merely have to convert the English Language to programming code.

    I'm not going to give you the answer, I never expected that kind of help when I was doing this. But here's some hints:

    Usually when you want to find something in a short simple array, you use a loop.
    "if the even number = the sum of next 2 odd number return true else return false" - this is your answer.
    He who asks is a fool for five minutes, but he who does not ask remains a fool forever.

    The fool wonders, the wise man asks. - Benjamin Disraeli

    There are no foolish questions and no man becomes a fool until he has stopped asking questions. Charles Steinmetz

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    please need the answer sooooooooon
    Closed.

    See the policies regarding homework. There has been no attempt here at the solution and therefore no reason to keep this thread open.

Popular pages Recent additions subscribe to a feed