Question: Implement a class Employee. For the purpose of this question, a student has a name, ID number, and an hourly wage. Supply an appropriate constructor

Implement a class Employee.

For the purpose of this question, a student has a name, ID number, and an hourly wage.

Supply an appropriate constructor and methods getName(), equals, compareTo, and currentPay(double hours) that will calculate the employees current pay based on the hours he/she worked. To calculate the weekly pay amount, the employee earns hourlyWage for the first 40 hours he/she works; after 40 hours, the employee is paid time and a half for the extra time (multiply the hourly wage by 1.5)

public class Employee{

// instance variable

//Constructor

//instance methods

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!