Page 1 of 1

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
by answerhappygod
A Write The Following Method Definition Named Netsalary For Both Subclasses That Calculate And Return The Net Salary 1
A Write The Following Method Definition Named Netsalary For Both Subclasses That Calculate And Return The Net Salary 1 (48.55 KiB) Viewed 17 times
A Write The Following Method Definition Named Netsalary For Both Subclasses That Calculate And Return The Net Salary 2
A Write The Following Method Definition Named Netsalary For Both Subclasses That Calculate And Return The Net Salary 2 (36.49 KiB) Viewed 17 times
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