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