Advertisement
aneliabogeva

Scholarship

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