a) Write the following method definition named netsalary () for both subclasses that calculate and return the net salary
Posted: Thu Jul 14, 2022 2:06 pm
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
netSalary =( salary + (yearService ∗ percentPaid ⋆ salary) )− socso Table 1: Grade and percentpaid