Results 1 to 6 of 6
- 01-16-2008, 05:23 PM #1Member
- Join Date
- Jan 2008
- Rep Power
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 firstname.lastname@example.org and I will post who has given me the best version of this code...
- 01-16-2008, 06:21 PM #2
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.
- 01-16-2008, 06:42 PM #3
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 :)
- 01-16-2008, 07:48 PM #4
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.
- 01-16-2008, 11:19 PM #5
- 01-16-2008, 11:25 PM #6
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.
- By Java Tutorial in forum Java TutorialReplies: 0Last Post: 12-27-2007, 07:19 PM
- By gammaman in forum New To JavaReplies: 1Last Post: 12-25-2007, 02:01 AM
- By Java Tutorial in forum Java TutorialReplies: 0Last Post: 12-24-2007, 08:21 PM
- By JavaForums in forum Java TutorialReplies: 0Last Post: 07-28-2007, 11:10 PM
- By levent in forum Java SoftwareReplies: 0Last Post: 05-25-2007, 07:39 AM