Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- overtime_benefits = 200 # per hour
- ## Person 1 =================================
- performance_score = 90
- overtime_hour = 10
- basic_salary = 30000
- if performance_score > 90:
- performance_benefits = 8000
- elif performance_score < 70:
- performance_benefits = 4000
- else:
- performance_benefits = 6000
- overtime_pay = overtime_benefits * overtime_hour
- month_salary = basic_salary + performance_benefits + overtime_pay
- print(month_salary)
- ## Person 2 =================================
- performance_score = 60
- overtime_hour = 5
- basic_salary = 40000
- if performance_score > 90:
- performance_benefits = 8000
- elif performance_score < 70:
- performance_benefits = 4000
- else:
- performance_benefits = 6000
- overtime_pay = overtime_benefits * overtime_hour
- month_salary = basic_salary + performance_benefits + overtime_pay
- print(month_salary)
- ## Person 3 =================================
- performance_score = 80
- overtime_hour = 10
- basic_salary = 50000
- if performance_score > 90:
- performance_benefits = 8000
- elif performance_score < 70:
- performance_benefits = 4000
- else:
- performance_benefits = 6000
- overtime_pay = overtime_benefits * overtime_hour
- month_salary = basic_salary + performance_benefits + overtime_pay
- print(month_salary)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement