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