Advertisement
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())
- excellent_grade = grade >= 5.5
- money = dohod < pay_check
- avg_grade = grade >= 4.5
- social_scholarship = pay_check*0.35
- if money and avg_grade:
- print(f"You get a Social scholarship {math.floor(social_scholarship)} BGN")
- elif excellent_grade:
- print(f"You get a scholarship for excellent results {math.floor(grade*25)} BGN")
- elif excellent_grade and money and avg_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
Advertisement