// // ----> THIS IS ONLY A HINT <----------- // ----> YOU MAY NEED MORE METHODS AND VARIABLE <----------- // // A worker's performance is assessed by the no. of products he/she assembled, // no. of hours he/she has worked, and // no. of products assembled by him/her found faulty // the formula used here for calculating performance is hypothetical class Worker extends Employee { //declare variables for no. of hours worked no. of product assembled no. of assembled products found faulty Worker(){ // set job title in this constructor // so whenever an object of class Worker is created // its job title is set to Worker } void getInfo() { // write code for getting information for worker } void calPerformance(){ // calculate performance index as follows: (no. of product assembled per hour) multiplied by (1.0 - no. of faults found divided by no. of product assembled) } }