code in java please i can test it on my own.
2. Other deductions like Canadian Pension Plan (CPP), Employment Insurance, and health premiums computed according to salary brackets. These include CPP (Canada Pension Plan) and El (Em- ployment Insurance). CPP is 5.25% of the gross income (but to a maximum amount of $2,898.00). El is 1.58% of the gross income (but to a maximum amount of $856,36). In addition to the de ductions above let us assume all employees (irrespective of their province of residence) are charged health premiums and that the premiums are based on the following rules (a) If the taxable income is less than or equal to $22,000.00, the premium is $0.00. (b) If the taxable income is greater than $22,000.00 and less than or equal to $38,000.00, the premium is equal to the lesser of: () $300.00 and (ii) 6% of (taxable income - $22,000.00); (c) If the taxable income is greater than $38,000.00 and less than or equal to $60,000.00, the pre- mium is equal to the lesser of: () $450.00 and (1) 300+ 6% of (taxable income - $38,000.00); (a) If the taxable income is greater than $50,000.00 and less than or equal to $74,000.00, the pre- mium is equal to the lower of: (i) $600.00 and (11) 450 + 25% of (taxable income - $50,000,00); (e) If the taxable income is greater than $74,000.00 and less than or equal to $202,000.00, the pre- mium is equal to the lesser of: () $750.00 and (ii) 600 + 25% of (taxable income - $74,000.00); (1) If the taxable income is greater than $202,000.00, the premium is equal to the lesser of: (1) $900.00 and (ii) 750 + 25% of (taxable income - $202,000.00). ojects.com. 1 2 3 Add Config CPP java 4 Eljava GovernmentTaxjava * HealthPremiumJava DataSciencejava Quality Assurance juve /*Code Authored by: ***Dr. Opeyemi Olusegun Adesina ***School of Computing, University of the Fraser Valley, Abbotsford - Canada ***All rights reserved for reuse purposes, please contact or. Adesina at Copeyeni adesinagutv.ca] 5 package canadian.payroll public class CPP extends Deduction public CPPC Employee employee super omplaye); public double computeAmount() { 6 7 8 9 10 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 double Incone employee.getIncono(); //INSERT YOUR CODE HERE - Using the specification given on CPA return 0.0; public double getAmount() { amount computeAmount(); //computer the applicablo CPP anount. Math.round( anount . 100.0 % / 100.0; //rounding off to adp return amount