Search:

Type: Posts; User: jazz

Search: Search took 0.07 seconds.

  1. Re: I am having trouble getting my program to return Withholding Tax (keeps returing zero).

    Thank so kmuch. Finally got it.
    Enter the employee's ID
    555
    Enter the number of hours worked:
    40
    Enter the hourly pay rate for this employee:
    20
    The gross pay for 555 is: 800.0
    The...
  2. Re: I am having trouble getting my program to return Withholding Tax (keeps returing zero).

    ok..I am getting there. It at least returns 0.0 Now I just have to see why it's not getting the value

    Here is my return
    Enter the employee's ID
    55
    Enter the number of hours worked:
    12
    Enter...
  3. Re: I am having trouble getting my program to return Withholding Tax (keeps returing zero).

    Don't I call it here

    //Get the Withholding Tax of the employee.

    System.out.println("The Withholding Tax for " + IDnumber + " is: ");
    pay.setgrossPay(GrossPay);...
  4. Re: I am having trouble getting my program to return Withholding Tax (keeps returing zero).

    Ok the gross pay works. It is the Withholding tax that returns zero.
    Here is my output
    Enter the employee's ID
    123
    Enter the number of hours worked:
    22
    Enter the hourly pay rate for this...
  5. I am having trouble getting my program to return Withholding Tax (keeps returing zero).

    hi
    I have to set an instance variable but just don't know where.Attached is my class with Methods and my Test Class . Any help would be great.
    Methods:


    public class Payroll
    {
    //constants...
Results 1 to 5 of 5