Guest User

scholarship

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