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