Advertisement
omnilog

08. Scholarship

Sep 21st, 2019
554
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.  
  3. income = float(input())
  4. average_evolution = float(input())
  5. minimum_salary = float(input())
  6.  
  7. # social scholarship
  8. social = math.floor(minimum_salary * 0.35)
  9. # success scholarship
  10. success = math.floor(average_evolution * 25)
  11.  
  12. if (income >= minimum_salary and average_evolution < 5.5) or (income < minimum_salary and average_evolution < 4.5):
  13.     print('You cannot get a scholarship!')
  14. elif income < minimum_salary and 5.5 > average_evolution > 4.5:
  15.     print(f'You get a Social scholarship {social} BGN')
  16. elif average_evolution >= 5.50:
  17.     print(f'You get a scholarship for excellent results {success} BGN')
  18. elif social > success:
  19.     print(f'You get a Social scholarship {social} BGN')
  20. elif social < success:
  21.     print(f'You get a scholarship for excellent results {success} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement