Results 1 to 3 of 3
- 03-26-2010, 12:09 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 49
- Rep Power
- 0
Please help me PLEASe with this question
I want only the sort method ..... can u write it to me ??
or please write help me with the main class(driver) ??:confused:
Task 1
A pay check: Write a class declaration for a Paycheck class.
Include the following attributes (Data Members):
• Check # (String of 8 digits).
• ID number of employee receiving the check (String of 6 digits)
• Date of check. ( Create an object of type Date)
• Net pay (amount of pay before deductions).
• Tax amount
• Total allowances
The (behaviours) member methods of this class should include:
• A constructor
• set and get methods
• A method to compute the gross salary
• A method to print out the check
• A method that counts the total gross of an array of Checks
Task 2
Write a Driver class to test the above class. Create an array of at least 10 checks and fill it using set methods.
Your program also should include sort and search methods.
Sort: should sort the array in ascending order according to the check#.
Search: should pass the check# as an argument and search for it an array and print out the check if it is found.
- 03-26-2010, 12:41 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 03-26-2010, 12:45 PM #3
what have you done so far?
you may arrange the array with respect to the chosen column ( datum ) since the elements is of objects that holds the data members
Different Sort Algorithms animationfreedom exists in the world of ideas
Similar Threads
-
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 08:49 AM -
JDO Question...
By Kam in forum JDBCReplies: 0Last Post: 01-07-2010, 06:11 PM -
Question
By ayoood in forum New To JavaReplies: 16Last Post: 05-21-2008, 02:23 PM -
JNI question
By javaplus in forum New To JavaReplies: 0Last Post: 12-24-2007, 10:18 AM -
question about rmi
By leonard in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks