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