Question: WorkLog A WorkLog instance represents the work record of an employee for a day. getMonth Returns month of the record ( 1 1 2 )

WorkLog
A WorkLog instance represents the work record of an employee for a day.
getMonth Returns month of the record (112).
getYear Returns 4-digit year.
getPayAmount hourlyRate * hoursWorked.
equals
Each employee has at most one log on a particular day.
Therefore, two instances with the same empId and dateOfWork
are considered the same instance.
toString Returns empId, dateOfWork and pay amount.
TravelWorkLog
A TravelWorkLog instance represents the work record of an employee for a day at a
customers site.
BONUS_RATE Bonus rate (20%) used to compute additional pay on top of the
usual amount of hourlyRate * hoursWorked.
subsidy Additional pay to cover expenses on meals, transport, etc. The
amount varies from case to case.
getPayAmount hourlyRate * hoursWorked + Bonus pay + subsidy
toString Returns empId, dateOfWork, pay amount and subsidy.

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 Programming Questions!