Results 1 to 8 of 8
  1. #1
    xEuPhOrIcSx is offline Member
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    0

    Default Taking Java In School Need Help

    Ok I am taking a Java class in my school required by the people in the math program and I need some help. Our first HW is too create a program that converts dog years into human years. Anyone wanna help me =x?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    Well, can you tell us what you've done so far? and what problems are you facing with your homework?

  3. #3
    xEuPhOrIcSx is offline Member
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    0

    Default

    Well I came late to class today so I was not there for the explanation of how to write this code so basically I am at the very beginning. I have eclipse open I made a new project added a class and now I am staring at it clueless =(

  4. #4
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Let's try to solve this first without actually writing any code. What would be your strategy to logically solve this problem? Write it out - step by step - post it.

    Welcome to the Forums. :)
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  5. #5
    geork's Avatar
    geork is offline Member
    Join Date
    Jan 2008
    Posts
    14
    Rep Power
    0

    Default

    i'll give you a clue: you need to create 2 variables

  6. #6
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Quote Originally Posted by geork View Post
    i'll give you a clue: you need to create 2 variables
    geork, are you absolutely sure this is what the OP needs? How can we be sure he even knows how to code? Let's hear the strategy first before suggesting implementation possibilities.

    OP, what is your strategy?

    For starters, what is dog years? Something like every one human year is seven human years for a dog. Right or wrong? Let's hear it!
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  7. #7
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Quote Originally Posted by xEuPhOrIcSx View Post
    ...
    I have eclipse open I made a new project added a class and now I am staring at it clueless =(
    This is your problem - Do not depend on an IDE to write your code for you. Get a strategy first, then write the code.
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  8. #8
    ramapple is offline Member
    Join Date
    Feb 2008
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by CaptainMorgan View Post
    For starters, what is dog years? Something like every one human year is seven human years for a dog. Right or wrong? Let's hear it!
    This is the ESSENTIAL. It will be what your code is based off of. From there, write an input of how many dog years there are, then convert that to human years and output that.

    Like CaptainMorgan said, we can't code it for you if you don't know how to code. Hope it helps in some way!

Similar Threads

  1. Taking input from Properties File
    By bugger in forum New To Java
    Replies: 4
    Last Post: 05-07-2008, 09:30 AM
  2. Taking passwords on the console
    By eva in forum Advanced Java
    Replies: 2
    Last Post: 12-19-2007, 09:28 AM
  3. Beginner Needs Help w/ Program for School
    By badness in forum New To Java
    Replies: 2
    Last Post: 11-24-2007, 07:51 PM
  4. Please help... assignment for school
    By confused2000 in forum New To Java
    Replies: 3
    Last Post: 11-12-2007, 08:12 AM
  5. Taking input from console
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-05-2007, 04:47 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
  •