Question
JAVA You need to use the Taxable and PRSI interfaces as detailed below. 2. a. Create an Employee class which has a name, PPS number
JAVA
You need to use the Taxable and PRSI interfaces as detailed below.
2. a. Create an Employee class which has a name, PPS number an annual salary.
b. Have this class implement the Taxable and PRSI interfaces.
c. An employees PRSI is calculated as follows: i. If the employee earns less than 352 per week the PRSI is 0, otherwise the PRSI is the salary times PRSI.rate
d. An employees Tax is calculated as follows: i. An employee pays 20% tax on the first 33800 that he/she earns and 40% on the remainder.
e. An employee should implement the printTax() method by calculating the PRSI and Tax and then printing this along with the name and PPS number.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started