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...
Type: Posts; User: jazz
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...
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...
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);...
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...
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...