Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- income = float(input())
- average_grade = float(input())
- min_working_salary = float(input())
- import math
- social_scholarship = math.floor(0.35 * min_working_salary)
- excellence_scholarship = math.floor(average_grade * 25)
- if average_grade >= 5.50 and income >= min_working_salary:
- print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
- elif average_grade >= 5.50 and income < min_working_salary:
- if social_scholarship > excellence_scholarship:
- print(f'You get a Social scholarship {social_scholarship} BGN')
- else:
- print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
- elif 4.5 < average_grade < 5.50 and income < min_working_salary:
- print(f'You get a Social scholarship {social_scholarship} BGN')
- else:
- print('You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement