An employee is paid at a rate of $20.75 per hour for regular hours worked in a week. Regular hours are up to and including 40 hours per week. Any hours in a week worked over regular hours are paid at the overtime rate of time and a half (i.e. $20.75 x 1.5 per hour). The gross pay is calculated according to the number of hours worked in a week. Added to the gross pay for each employee each month is the sum of $54 which each single employee pays for their Medical Services Plan (MSP). If the employee is married, $36 is added to the gross pay for MSP instead of $54.

From the gross pay there are a number of deductions per month:

20% of gross pay is deducted for federal income tax (FIT).

5% of gross pay is deducted for Canada Pension Plan (CPP).

A lump sum of $75 is deducted for Extended Medical Insurance (EMI).

Your program should allow the user to enter the employee's name, their marital status (single or married) and the number of hours worked in each of the four weeks of the month. The number of hours can include a fractional part, e.g. 36.9. Your program calculates and displays the gross pay based on the total hours worked each week (rounded to the nearest integer, e.g. 36.9 is rounded to integer 37) and includes the MSP payment. The program calculates and displays the value of each of the deductions. Finally, the program displays the net salary (the take-home pay) for the employee which is calculated from gross pay minus deductions.

4 Years
Discussion Span
Last Post by woooee

Start by getting the input from the user, i.e. Name, number of hours, etc. and then work out the math on paper and convert to Python. Post back with problems.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.