SHARE
TWEET

08. Scholarship

omnilog Sep 21st, 2019 (edited) 129 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3. income = float(input())
  4. average_evolution = float(input())
  5. minimum_salary = float(input())
  6.  
  7. # social scholarship
  8. social = math.floor(minimum_salary * 0.35)
  9. # success scholarship
  10. success = math.floor(average_evolution * 25)
  11.  
  12. if (income >= minimum_salary and average_evolution < 5.5) or (income < minimum_salary and average_evolution < 4.5):
  13.     print('You cannot get a scholarship!')
  14. elif income < minimum_salary and 5.5 > average_evolution > 4.5:
  15.     print(f'You get a Social scholarship {social} BGN')
  16. elif average_evolution >= 5.50:
  17.     print(f'You get a scholarship for excellent results {success} BGN')
  18. elif social > success:
  19.     print(f'You get a Social scholarship {social} BGN')
  20. elif social < success:
  21.     print(f'You get a scholarship for excellent results {success} BGN')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top