Advertisement
Guest User

scholarship

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