java.lang.Object
calculator.PayrollCalculator.TaxCalculator
- Enclosing class:
- PayrollCalculator
A class to calculate the tax based on the taxable income.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
calculateTax
(double taxableIncome) 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
-