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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
100%

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).

Sample Output:
Enter the number of hours worked (Q60): 32
Enter the hourly rate (0.00. 30.00): 14.25
Enter the number of exemptions (Q 5): 0
You worked 32 hours per hour at 14.25 TL.
Brut Payment 456.00 TL
General Tax 68.40 TL
Local Tax 13.68 TL
Social Security Amount 34.88 TL
Net Payment 339.04 TL I
(Ctrl)
Transcribed Image Text:Sample Output: Enter the number of hours worked (Q60): 32 Enter the hourly rate (0.00. 30.00): 14.25 Enter the number of exemptions (Q 5): 0 You worked 32 hours per hour at 14.25 TL. Brut Payment 456.00 TL General Tax 68.40 TL Local Tax 13.68 TL Social Security Amount 34.88 TL Net Payment 339.04 TL I (Ctrl)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning