- All Known Implementing Classes:
PayrollCalculator
public interface Payroll
Defines the interface payroll calculations.
Provides methods to calculate withholding tax, gross pay, and net pay.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculate the gross pay.double
Calculate the net pay.double
Calculate the withholding tax.
-
Method Details
-
calculateWithholdingTax
double calculateWithholdingTax()Calculate the withholding tax.- Returns:
- the withholding tax amount
-
calculateGrossPay
double calculateGrossPay()Calculate the gross pay.- Returns:
- the gross pay calculated
-
calculateNetPay
double calculateNetPay()Calculate the net pay.- Returns:
- the net pay calculated
-