Advertisement
Murry4

Scholarship

Sep 17th, 2019
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. grade = float(input())
  5. salary = float(input())
  6.  
  7. social_scholarship = 0
  8. excellent_scholarship = 0
  9.  
  10. if income < salary and grade > 4.5:
  11.   social_scholarship = salary * 0.35
  12.  
  13. if grade >= 5.5:
  14.   excellent_scholarship = grade * 25
  15.  
  16. if excellent_scholarship > social_scholarship:
  17.   print(f'You get a Excellent scholarship {math.floor(excellent_scholarship)} BGN')
  18. elif social_scholarship > excellent_scholarship:
  19.   print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  20. else:
  21.   print(f'You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement