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