Advertisement
desislava_topuzakova

Untitled

May 8th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. import math
  2.  
  3. incomes = float(input())
  4. grade = float(input())
  5. minimal_Income = float(input())
  6.  
  7. if incomes >= minimal_Income and grade < 5.50:
  8. print("You cannot get a scholarship!")
  9. elif incomes < minimal_Income and grade < 4.50:
  10. print("You cannot get a scholarship!")
  11. elif incomes < minimal_Income and 4.50 <= grade < 5.50:
  12. socialScholarship = math.floor(minimal_Income * 0.35)
  13. print(f"You get a Social scholarship {socialScholarship} BGN")
  14. elif incomes >= minimal_Income and grade >= 5.50:
  15. gradeScholarship = math.floor(grade * 25)
  16. print(f"You get a scholarship for excellent results {gradeScholarship} BGN")
  17. elif incomes < minimal_Income and grade >= 5.50:
  18. socialScholarship = math.floor(minimal_Income * 0.35)
  19. gradeScholarship = math.floor(grade * 25)
  20. if socialScholarship > gradeScholarship:
  21. print(f"You get a Social scholarship {socialScholarship} BGN")
  22. else:
  23. print(f"You get a scholarship for excellent results {gradeScholarship} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement