// NAME: Liane Nakamura // STUDENT ID: 25806927 // Contract Employee subclass of Employee public class EmployeeContract extends Employee { String name; int wage; public EmployeeContract (String name) { super(name); } public EmployeeContract (String name, int wage) { super(name); this.wage = wage; } public Paycheck createWeeklyPaycheck(int hoursWorked) { Paycheck check; int grossPay = hoursWorked * wage; int tax = 0; check = new Paycheck(this, hoursWorked, grossPay, tax); return check; } public String getName() { return super.getName(); } public String toString() { String s = getName(); s += " (contract, " + CurrencyFormat.format(wage) + "/hr)"; return s; } }