Advertisement
Guest User

08.

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