You are an accountant setting up a payroll system based on Table, which shows five different ranges for salaries up to Rs.150, 000.00. Each table line shows the base tax amount (column2) and tax percentage (column3) for a particular salary range (column1).
Write a function that taken person’s salary and calculate the tax due by adding the base tax to the product of the percentage times the excess salary over the minimum salary for that range.
Please fix the following input errors: