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