logo codesdope

To Calculate salaries

   IamKing Wale-gh

A farmer wants you to create a console application using Java to manage salaries of workers on the farm. The table below shows the number of hours worked on the farm by each employee; employees are identified by their assigned ID (employee ID).

Employee
1
3
7
13
15
2
4
 


Task:
Calculate the monthly salary due each employee. Note: Hourly Rate is the amount of money paid for work done in an hour. Standard Hours is the number of hours worked between 8am to 5pm. Overtime is the extra number of hours worked. Overtime is calculated with a different Hourly Rate (known as Overtime Hourly Rate). Income Tax is a charge on the Monthly salary paid to government.
For purpose of this examination, consider the following values. i. Hourly Rate = GHS4.2 ii. Standard Hours = 5 Hours iii. Overtime = Total number of hours worked beyond the Standard 5 Hours iv. Overtime Hourly Rate = GHS5.1 v. Income Tax = 8%

 

 


Answers

Write your answer
Close

Welcome.please sign up.

Close

Welcome.please login.