Guest User

Untitled

a guest
Nov 21st, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. grade = float(input())
  5. min_salary = float(input())
  6.  
  7. social_scholarship_bool = False
  8. excellent_scholarship_bool = False
  9.  
  10. if income < min_salary and grade > 4.50:
  11. social_scholarship_bool = True
  12. social_scholarship = min_salary * 0.35
  13.  
  14. if grade >= 5.50:
  15. excellent_scholarship_bool = True
  16. excellent_scholarship = grade * 25
  17.  
  18. if social_scholarship_bool and excellent_scholarship_bool:
  19. if social_scholarship > excellent_scholarship:
  20. print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  21. else : print(f'You get a scholarship for excellent results {math.floor(excellent_scholarship)} BGN')
  22.  
  23. elif social_scholarship_bool :
  24. print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  25.  
  26. elif excellent_scholarship_bool :
  27. print(f'You get a scholarship for excellent results {math.floor(excellent_scholarship)} BGN')
  28.  
  29. else :
  30. print(f'You cannot get a scholarship!')
Add Comment
Please, Sign In to add comment