Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- income_in_leva = float(input())
- grade = float(input())
- minimal_wage = float(input())
- social_benefit = 0.35
- social_scholarship = minimal_wage * social_benefit #по социално ако няма отличен
- scholarship_by_grade = grade * 25 # за отличен
- if income_in_leva >= minimal_wage and grade < 5.50:
- print("You cannot get a scholarship!")
- elif income_in_leva >= minimal_wage and grade <= 5.50:
- if scholarship_by_grade > social_scholarship:
- print(f'You get a scholarship for excellent results {math.floor(scholarship_by_grade)} BGN')
- if income_in_leva <= minimal_wage and grade < 5.50:
- social_scholarship > scholarship_by_grade
- print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
- if social_scholarship >= scholarship_by_grade:
- print(f'You get a scholarship for excellent results {math.floor(scholarship_by_grade)} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement