Results 1 to 3 of 3
  1. #1
    javanew is offline Member
    Join Date
    Mar 2010
    Posts
    49
    Rep Power
    0

    Default 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.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by javanew View Post
    I want only the sort method ..... can u write it to me ?.
    No, this is a forum. Not a place to get your assignments done. Put your effort and show it here first. Then we'll help you.

  3. #3
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    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 animation
    freedom exists in the world of ideas

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. JDO Question...
    By Kam in forum JDBC
    Replies: 0
    Last Post: 01-07-2010, 07:11 PM
  3. Question
    By ayoood in forum New To Java
    Replies: 16
    Last Post: 05-21-2008, 03:23 PM
  4. JNI question
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-24-2007, 11:18 AM
  5. question about rmi
    By leonard in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:19 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
  •