Package calculator

Class PayrollCalculator.TaxCalculator

java.lang.Object
calculator.PayrollCalculator.TaxCalculator
Enclosing class:
PayrollCalculator

public static class PayrollCalculator.TaxCalculator extends Object
A class to calculate the tax based on the taxable income.
  • Constructor Details

    • TaxCalculator

      public TaxCalculator()
  • Method Details

    • calculateTax

      public static double calculateTax(double taxableIncome)
      Calculate the tax based on the taxable income.
      Parameters:
      taxableIncome - the taxable income
      Returns:
      the tax amount