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