Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. grade = float(input())
  5. minsal = float(input())
  6. contr = float(0)
  7.  
  8. if income < minsal:
  9. contr += 1
  10. if grade > 4.5:
  11. contr += 1
  12. if grade >= 5.5:
  13. contr += 5
  14.  
  15. if contr == 2:
  16. print(f'You get a Social scholarship {math.floor(0.35 * minsal)} BGN')
  17. elif contr == 5 or contr == 6:
  18. print(f'You get a scholarship for excellent results {math.floor(grade * 25)} BGN')
  19. elif contr == 7:
  20. if math.floor(0.35 * minsal) > math.floor(grade * 25):
  21. print(f'You get a Social scholarship {math.floor(0.35 * minsal)} BGN')
  22. else:
  23. print(f'You get a scholarship for excellent results {math.floor(grade * 25)} BGN')
  24. else:
  25. print(f'You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement