Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. overtime_benefits = 200 # per hour
  2.  
  3. ## Person 1 =================================
  4. performance_score = 90
  5. overtime_hour = 10
  6. basic_salary = 30000
  7.  
  8. if performance_score > 90:
  9. performance_benefits = 8000
  10. elif performance_score < 70:
  11. performance_benefits = 4000
  12. else:
  13. performance_benefits = 6000
  14.  
  15. overtime_pay = overtime_benefits * overtime_hour
  16. month_salary = basic_salary + performance_benefits + overtime_pay
  17. print(month_salary)
  18.  
  19.  
  20. ## Person 2 =================================
  21. performance_score = 60
  22. overtime_hour = 5
  23. basic_salary = 40000
  24.  
  25. if performance_score > 90:
  26. performance_benefits = 8000
  27. elif performance_score < 70:
  28. performance_benefits = 4000
  29. else:
  30. performance_benefits = 6000
  31.  
  32. overtime_pay = overtime_benefits * overtime_hour
  33. month_salary = basic_salary + performance_benefits + overtime_pay
  34. print(month_salary)
  35.  
  36.  
  37. ## Person 3 =================================
  38. performance_score = 80
  39. overtime_hour = 10
  40. basic_salary = 50000
  41.  
  42. if performance_score > 90:
  43. performance_benefits = 8000
  44. elif performance_score < 70:
  45. performance_benefits = 4000
  46. else:
  47. performance_benefits = 6000
  48.  
  49. overtime_pay = overtime_benefits * overtime_hour
  50. month_salary = basic_salary + performance_benefits + overtime_pay
  51. print(month_salary)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement