Texts: Language: Python / Java
Personal Deductions: Single / Head of the Family / Married - Php 50,000.00 Additional Deduction / Exemption: Php 25,000.00 / dependent ***Note: Maximum of four (4) dependents TAX TABLE Taxable base Tax rate Not over P250,000 0% Over P250,000 but not over P400,000 15% of the excess over P250,000 Over P400,000 but not over P800,000 P22,500 + 20% of the excess over P400,000 Over P800,000 but not over P2,000,000 P102,500 + 25% of the excess over P800,000 Over P2,000,000 but not over P5,000,000 P402,500 + 30% of the excess over P2,000,000 Over P5,000,000 P1,302,500 + 35% of the excess over P5,000,000
Input Requirement. 1. Name of Taxpayer 2. TIN (Tax Identification Number) 3. Gross Income (Annual Income) 4. Civil Status (Single, Married, or Head of the Family) 5. Number of Dependents
Process: 1. Get the name of the Taxpayer, his/her TIN and Gross Income 2. Get the Civil Status. 3. If Civil_Status != Single, get the number of dependents 4. Compute for the taxable income a. Taxable Income = Gross Income - Total Exemption b. Total Exemption = Personal Deduction + Additional Exemption 5. Get the tax due.
Program Specifications: 1. Include necessary validation codes. 2. Use at least three (3) functions. a. To get the Personal Deduction. b. To get the Additional Exemption. c. To get the tax due. 3. Use a loop. This would allow the user to execute the program as many times as the user wants to.