Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. income_in_bgn = float(input())
  2. average_success = float(input())
  3. minimal_salary = float(input())
  4. social_scholarship = 0
  5. excellent_scholarship = 0
  6. if average_success <= 4.50:
  7. if income_in_bgn < minimal_salary:
  8. social_scholarship = minimal_salary * 0.35
  9. print(f"You get a Social scholarship {social_scholarship} BGN")
  10. elif income_in_bgn > minimal_salary:
  11. print(f"You cannot get a scholarship!")
  12. elif average_success >= 5.50:
  13. if income_in_bgn > minimal_salary:
  14. excellent_scholarship = average_success * 25
  15. print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
  16. elif average_success >= 5.50:
  17. if income_in_bgn < minimal_salary:
  18. social_scholarship = minimal_salary * 0.35
  19. excellent_scholarship = average_success * 25
  20. if social_scholarship > excellent_scholarship:
  21. print(f"You get a Social scholarship {social_scholarship} BGN")
  22. elif social_scholarship < excellent_scholarship:
  23. print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
  24. elif average_success <= 5.50:
  25. if income_in_bgn < minimal_salary:
  26. social_scholarship = minimal_salary * 0.35
  27. print(f"You get a Social scholarship {social_scholarship} BGN")
  28. else:
  29. print(f"You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement