Advertisement
Guest User

Scholarship

a guest
Feb 22nd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. income = float(input())
  2. average_grade = float(input())
  3. min_working_salary = float(input())
  4. import math
  5. social_scholarship = math.floor(0.35 * min_working_salary)
  6. excellence_scholarship = math.floor(average_grade * 25)
  7. if average_grade >= 5.50 and income > min_working_salary:
  8. print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
  9. elif average_grade >= 5.50 and income < min_working_salary:
  10. if social_scholarship > excellence_scholarship:
  11. print(f'You get a Social scholarship {social_scholarship} BGN')
  12. else:
  13. print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
  14. elif 4.5 < average_grade < 5.50 and income < min_working_salary:
  15. print(f'You get a Social scholarship {social_scholarship} BGN')
  16. else:
  17. print('You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement