Package calculator

Interface Payroll

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