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