Hi, I have to write the following program for class...and I have no idea
where to start
if anyone would be so kind as to point me in the right direction (or write
the program) i would be very appreciative
1. Write a class named Pupil that implements Comparable. It has four
instance variables of type String and double (Name, testl, test2, test3, and
average). The constructor must input the test scores from the user, and call
the computeAverage method to initialize the instance variable, average. In
addition, the class must have getters for each instance variable. It must
also have a private helper method called computeAverage that returns the
average of all three test scores. And a compareTo method that compares two
students. It must work like all compareTo methods such that it takes in an
Object parameter and returns 1 if the object that called it is greater
returns -1 if they are equal, it returns 0.
2. Create a TestPupil class (must put import Java.lang; at the top) that
prompts the user for the number of students in the class prompts the user to
enter the information about all students in the class and creates a student
object for each pupil. Stores the students in an arrayList and calls the
compareTo method which compares all the students to all the other students in
the class
Thanks
-A
Eric Sosman - 12 Jan 2006 21:48 GMT
somekid413 wrote On 01/12/06 15:56,:
> Hi, I have to write the following program for class...and I have no idea
> where to start [...]
The instructions seem pretty straightforward, so if you
have no idea where to start you must be having pretty serious
trouble with the class. I strongly recommend that you talk
with your professor about the difficulties you're having; you
may need some extra tutoring. Do it now, while the semester
is still young: In the early going your professor may be able
to help you overcome your problems and catch up, but if you
just sit there comprehending nothing and letting the class
wash over you, the professor may not become aware of how far
behind you are until you're so far behind there's no hope.
The professor wants you to learn -- so if you want to
learn, go have that talk. Now!
> if anyone would be so kind as to point me in the right direction (or write
> the program) i would be very appreciative
I see that the "if you want to learn" is not exactly
a tautology.

Signature
Eric.Sosman@sun.com
IchBin - 13 Jan 2006 06:37 GMT
> Hi, I have to write the following program for class...and I have no idea
> where to start
[quoted text clipped - 20 lines]
> Thanks
> -A
Apparently your are not paying for you eduction. So how much is it worth
to you for me to write it for you...

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)