Advertisement
Guest User

python

a guest
Jan 28th, 2020
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. from math import floor as fl
  2.  
  3. salary = float(input())
  4. average_grade = float(input())
  5. min_salary = float(input())
  6.  
  7. social_scholarship = 0
  8. grade_scholarship = 0
  9.  
  10. scholarship = False
  11.  
  12. if salary < min_salary and average_grade > 4.50:
  13.     scholarship = True
  14.     social_scholarship = min_salary * 0.35
  15.  
  16. if average_grade >= 5.50:
  17.     scholarship = True
  18.     grade_scholarship = average_grade * 25
  19.  
  20. if scholarship:
  21.     if social_scholarship > grade_scholarship:
  22.         print(f'You get a Social scholarship {fl(social_scholarship)} BGN')
  23.     else:
  24.         print(f'You get a scholarship for excellent results {fl(grade_scholarship)} BGN')
  25. else:
  26.     print(f'You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement