Question: I've checked my question. package ics 1 2 5 _ example _ 0 2 ; public class CommissionEmployee extends Employee { private double grossSales; private
I've checked my question.
package icsexample;
public class CommissionEmployee extends Employee
private double grossSales;
private double commissionRate;
public CommissionEmployeeString firstName, String lastName,
double grossSales,
double commissionRate
superfirstNamelastName;
this.grosssales grossales;
this commissionRate commissionRate;
@override
public float calculatePay
return the biweekly earnings for a commission employee
I
Confirm commission rate is between and
If the rate is not between theta theta and theta set the rate to zero.
Confirm the gross sales is larger than
If the gross sales is less than theta set the gross sales to zero.
Calculate the earnings to be the rate times the sales.
end class CommissionEmployee
package icexample;
public class ICSExample
public static void mainStringargs
track the total amount paid for all employees.
float total theta ;
Employeeoffice new SalaryEmployee BillBrown
new CommissionEmployeeSueBlack
new CommissionEmployeePatGreen
new SalaryEmployeeAmyRedd
;
System.out.printfPayment this period:n;
Print for each employee:
Emplayee Bill Brown earns $
etc.
System.out.printfTotal pay out is total;
end class ISCExample
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
