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