Advertisement
bl00dt3ars

08. Scholarship

Oct 12th, 2020 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. ave_succ = float(input())
  5. minimal_salary = float(input())
  6. social_scholarship = 0
  7. scholarship_exce = 0
  8.  
  9. if income < minimal_salary and ave_succ > 4.50:
  10.   social_scholarship = math.floor(minimal_salary * 0.35)
  11. if ave_succ >= 5.50:
  12.   scholarship_exce = math.floor(ave_succ * 25)
  13. if social_scholarship > scholarship_exce:
  14.   print(f"You get a Social scholarship {social_scholarship} BGN")
  15. elif scholarship_exce >= social_scholarship and scholarship_exce > 0:
  16.   print(f"You get a scholarship for excellent results {scholarship_exce} BGN")
  17. else:
  18.   print("You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement