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