a) Write the following method definition named netsalary () for both subclasses that calculate and return the net salary based on following information: The net salary for a Permanent worker is calculated based on percent paid according to grade given in Table 1 and by using the following formula:
netSalary =( salary + (yearService ∗ percentPaid ⋆ salary) )− socso Table 1: Grade and percentpaid
a) Write the following method definition named netsalary () for both subclasses that calculate and return the net salary
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
a) Write the following method definition named netsalary () for both subclasses that calculate and return the net salary
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!