usiness that uses functions to calculate the weekly payment amounts of employees in a workplace. you are asked to write a program. The weekly payment amount of an employee depends on the following variables: - Number of hours worked - (minimum: 0, maximum: 60) - Hourly wage - (minimum: 0.00 TL, maximum: 30.00 TL) - Number of exemptions - (minimum: 0, maximum: 5) Using these 3 values, - Gross payment amount
A business that uses functions to calculate the weekly payment amounts of employees in a workplace.
you are asked to write a program.
The weekly payment amount of an employee depends on the following variables:
- Number of hours worked - (minimum: 0, maximum: 60)
- Hourly wage - (minimum: 0.00 TL, maximum: 30.00 TL)
- Number of exemptions - (minimum: 0, maximum: 5)
Using these 3 values,
- Gross payment amount
- General income tax
Local income tax
- Social security amount
- Net payment amount
will be calculated.
→The maximum number of hours an employee can work before earning overtime pay is 40 hour. If the number of hours worked is less than or equal to 40, the gross payment amount will be equals the product of the wage. If the number of hours worked is more than 40, the gross payment amount is 40 times the hourly wage. plus 1.5 times the hourly rate for every hour over 40
→The general withholding tax is 55.77 TL for the weekly payment period. The employee is subject to general taxation the gross salary amount is equal to the employee's gross salary minus the general withholding deduction multiplied by the number of exemptions. equals. The taxable amount is then used to calculate the general income tax to be withheld. The withholding amount can be calculated using the table below.
Tax included (X) not included in tax
X<51 TL 0 TL
51 TL<= X <552 TL X %15
552 TL<= X <1196 TL 75.12 TL plus X %28
1196 TL<= X <2662 TL 255.47 TL plus X %31
2662 TL<= X <5750 TL 709.93 TL plus X %36
5750TL <= X 1821.61 TL plus X %39.6
→The general withholding tax is 38.46 TL for the weekly payment period. Employee's gross salary, general withholding If it is less than and equal to the product of the tax deduction and the exemption number, the local tax amount to be deducted is 0. Opposite calculated as 3% of the gross salary minus the general topage discount plus the number of exemptions.
→The social security amount to be deducted from the employee is equal to 7.65% of the gross payment amount of the employee.
→The net payment amount minus the gross payment amount (withheld general tax amount, local tax withheld and withheld equal to the sum of the social security amount).
Step by step
Solved in 3 steps with 1 images