I don't know where to start either because that has to be the poorest written assignment I have ever seen.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
you already have several arrays in your application: ids, hours and rate.
so you can see how you create an array.
now, you don't have, from the start, all the values at once to put in the array, but you do know how many elements your array must have, since the number of any of these arrays is the same as the amount of elements you will have.
so, you create an array of Asn07Employees Objects, that can hold to that number of elements.
After that, you create a loop that runs that many time, and you fill the array with the correct elements, being instances of Asn07Employees you create using the information you fetch out of the arrays mentioned earlier
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
> so, you create an array of Asn07Employees Objects
That would actually make a bit of sense, but the skeleton code provided appears to indicate they are to be handle as a wad of arrays stuffed into a single class. Looks like a bunch of useless nonsense to me.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Just jumping in here, but your Asn07Employees class needs a constructor that will accept the arrays it needs to manipulate. You might also consider using three ArrayList classes to which to add the values of the arrays. Then it's simply a matter of setting up some loops to fill the ArrayList objects, calculate the wages (not sure what the purpose of this method is), and print out the employees.
dononelson
Junior Poster in Training
62 posts since Mar 2010
Reputation Points: 13
Solved Threads: 15