Results 1 to 6 of 6
  1. #1
    tacosalad is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Exclamation java programming challenge Number 1

    define a class for rational numbers. represent rational numbers as two values of the type int, one for the numerator and one for the denominator your class should have two instance variables of type int call the class rational include a constructor with two arguments that can be used to set the instance variables of an object to any values. also include a constructor that has only a single parameter of type int; call this single parameter whole Number/1. also include a no-argument constructor that initializes an object to 0(that is, to 0/1). Note that the numerator, the denominator or both my contain a minus sign. send me working code to sendtomejava@gmail.com and I will post who has given me the best version of this code...

  2. #2
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default What?

    Are you trying to get us to work for you for free? :confused:
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  3. #3
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    You are right Tim. "Forum Lobby" is not the place to post such questions. I am moving this thread and giving a negative reputation for this user. You can do the same :)

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

    Default

    Off to a great start there tacosalad. The programming challenge proposal was for challenges that of an official nature, not homework problems. One example of such a challenge can be found at the SPOJ. Nice try though.
    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
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    Damn, for a second there i was actually expecting it to be a challenge

    Quote Originally Posted by CaptainMorgan View Post
    Nice try though.
    lmao. you're the best man hahahaha.

  6. #6
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    And by the way, this is most homework assignment challenge ever. What kind of "challenge" actually tells you what constructors you need lol. It's like. Yeah, make a class that my teacher will like, whoops, i mean, contains a constructor that calls for a String lol. Oh! and make sure to send me this code so i can evaluate your code, I am a pro and i will be the judge
    Come on, just be honest. If you want people to do your assignments, say so, don't lie to us.

    So now, we just have to hope JavaForums accepts my idea about the challenges section of the site.

Similar Threads

  1. Java networking programming (II)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 12-27-2007, 06:19 PM
  2. java game programming
    By gammaman in forum New To Java
    Replies: 1
    Last Post: 12-25-2007, 01:01 AM
  3. Java networking programming (I)
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 12-24-2007, 07:21 PM
  4. Java Programming
    By JavaForums in forum Java Tutorial
    Replies: 0
    Last Post: 07-28-2007, 11:10 PM
  5. The Million Musician Challenge 0.821
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-25-2007, 07:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •