Advertisement
svephoto

Scholarship [python] - another one

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