Advertisement
goganovradostin

Untitled

Nov 19th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1. salary_bgn = float(input())
  2. average = float(input())
  3. minimal_salary = float(input())
  4.  
  5. social_bonus = int(minimal_salary * 0.35)
  6. great_bonus = int(average * 25)
  7.  
  8. if salary_bgn > minimal_salary or average < 4.5:
  9.     print ("You cannot get a scholarship!")
  10. elif salary_bgn < minimal_salary and average > 4.5 and average < 5.5:
  11.     print(f'You get a Social scholarship {social_bonus} BGN')
  12. elif average > 5.5 and salary_bgn < minimal_salary and average > 4.5 and social_bonus < great_bonus:
  13.     print(f'You get a scholarship for excellent results {great_bonus} BGN')
  14. elif average > 5.5 and salary_bgn < minimal_salary and average > 4.5 and social_bonus > great_bonus:
  15.     print(f'You get a Social scholarship {social_bonus} BGN')
  16. elif average > 5.5 :
  17.     print(f'You get a scholarship for excellent results {great_bonus} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement