Advertisement
Erikv99

VakantieDagenBerekenenOpdr

Oct 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. age = int(input("Voer leeftijd in: "))
  2. yearsOfService = int(input("Voer aantal dienstjaren in: "))
  3.  
  4. holidayDays = 25
  5.  
  6. if (yearsOfService > 25 and yearsOfService <= 40):
  7.  
  8.     holidayDays += 2
  9.  
  10. elif (yearsOfService > 40):
  11.  
  12.     holidayDays += 5
  13.  
  14. if (age > 45 and age < 55):
  15.  
  16.     holidayDays += 1
  17.  
  18. elif (age > 56 and age < 65):
  19.  
  20.     holidayDays += 2
  21.  
  22. print("Uw aantal vakantie dagen is = {}".format(holidayDays))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement