Design a program in Java to calculate the tax for the people living in city. Specify a class taxpayer whose class description is given below: Class name: TaxCalculator Data members: int PAN String name double taxableIncome double tax Member methods: inputData() displayData computeData() The tax is calculated according to the following rules: Total Annual Taxable Income Rate of Taxation Up to 60000 0% Above 60000 but up to 150000 5% Above 150000 but up to 500000 10% Above 500000 2%
Answers
Answer:
Design a program in Java to calculate the tax for the people living in city. Specify a class taxpayer whose class description is given below: Class name: TaxCalculator Data members: int PAN String name double taxableIncome double tax Member methods: inputData() displayData computeData() The tax is calculated according to the following rules: Total Annual Taxable Income Rate of Taxation Up to 60000 0% Above 60000 but up to 150000 5% Above 150000 but up to 500000 10% Above 500000 2%
Explanation: