Advertisement
AnitaAntonova

Scholarship

Feb 22nd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 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 = min_salary * 0.35
  8. excellent_scholarship = grade *25
  9.  
  10. if grade >= 5.5:
  11.     if income < min_salary and social_scholarship > excellent_scholarship:
  12.         print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  13.     else:
  14.         print(f'You get a scholarship for excellent results {math.floor(excellent_scholarship)} BGN')
  15. elif grade > 4.5 and income < min_salary:
  16.     print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  17. else:
  18.     print('You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement