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