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