Need help programmng!!!!!!!!!!!!11

Discussion in 'OT Technology' started by metalman, Jul 25, 2004.

  1. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
    I have just started to program and i need alittle help!!!

    i wanted to develop a flow chart and pseudocode for:

    a whole number is to be input. The output will be a statement as to whether or not the number is even or odd. (easy i know but i need a kick in the right direction ie examples and stuff!!!)

    This is just for vb.

    Thanks for the help!!
     
    Last edited: Jul 25, 2004
  2. galek_spoo

    galek_spoo New Member

    Joined:
    Apr 13, 2004
    Messages:
    5,417
    Likes Received:
    0
    Location:
    Del Valle, TX
  3. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
  4. BradUF

    BradUF Guest

    A) Be an ASS
     
  5. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
    Can you help a brother out man???:x:
     
  6. ez4me2c3d

    ez4me2c3d Guest

    Code:
    iNumber = 55
    If iNumber Mod 2 = 0 Then
      MsgBox "even"
    Else
      MsgBox "odd"
    End If
    is this what you were looking for? basically any even number is divisible by 2 evenly and every other number is an odd.
     
  7. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
    i know that the code is very simple but i just started to code, i did a little back in high school and need to get refreshed quick as hell.

    but to what you wrote, if i put that in vb will it run?? i just need the program to tell me if the number i input is odd or even so i guess that would work??
     
  8. ez4me2c3d

    ez4me2c3d Guest

    its actually VBScript but since they are so similar im sure it will work in VB also.
     
  9. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
    That is great man, I will give it a shot, thanks for your help!!!
     
  10. ez4me2c3d

    ez4me2c3d Guest

    no problem
     
  11. metalman

    metalman Hang out with your wang out

    Joined:
    Mar 24, 2004
    Messages:
    548
    Likes Received:
    0
    Location:
    Denver(currently)
    Actually hey man is there a pseudocode version???
     
  12. galek_spoo

    galek_spoo New Member

    Joined:
    Apr 13, 2004
    Messages:
    5,417
    Likes Received:
    0
    Location:
    Del Valle, TX
    that was to help you, from gettin this shit locked. next time take advice and roll with it.
     
  13. maczter

    maczter Life is trying things to see if they work.

    Joined:
    Sep 30, 2003
    Messages:
    3,622
    Likes Received:
    0
    Location:
    Austin, TX
    Way to make it obvious that you really are asking for help with homework. :greddy:
     
  14. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    summer school owned him ;)

    there are many places to learn a language online.

    and a question. why are u using such a shitty language like VB? Try something like .Net or PHP or Python or Perl or Ruby or LISP (shudder).
     
  15. Jaycee0521

    Jaycee0521 New Member

    Joined:
    Jul 15, 2004
    Messages:
    64
    Likes Received:
    0
    maybe VB is what he's taking...?
     
  16. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    :wtc:
     
  17. maczter

    maczter Life is trying things to see if they work.

    Joined:
    Sep 30, 2003
    Messages:
    3,622
    Likes Received:
    0
    Location:
    Austin, TX
    Perhaps, but...

    Read Before You Post
    Topics concerning anything illegal (ie. hacking, cracking, piracy ) or "do my homework" will not be tolerated. Keep it clean kids.
     

Share This Page