Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. given_number = int(input())
  2. bonus1 = 0
  3. bonus2 = 0
  4. bonus3 = 0
  5. bonus4 = 0
  6. bonus5 = 0
  7. total_bonus_points = 0
  8. total_points = 0
  9. if given_number <= 100:
  10. bonus1 = 5
  11. if given_number > 100 and given_number <= 1000:
  12. bonus2 = given_number * 0.20
  13. if given_number > 1000:
  14. bonus3 = given_number * 0.10
  15. if given_number % 2 == 0:
  16. bonus4 = 1
  17. if given_number % 10 == 5:
  18. bonus5 = 2
  19. total_bonus_points = bonus1 + bonus2 + bonus3 + bonus4 + bonus5
  20. total_points = given_number + total_bonus_points
  21. print(total_bonus_points)
  22. print(total_points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement