SHARE
TWEET

Scholarships

a guest Feb 23rd, 2020 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3. income = float(input())
  4. average_grade = float(input())
  5. minimal_wage = float(input())
  6.  
  7. social_scholarship = math.floor(minimal_wage * 0.35)
  8. excellence_scholarship = math.floor(average_grade * 25)
  9.  
  10. if income < minimal_wage and average_grade > 4.5:
  11.     if average_grade < 5.50:
  12.         print(f'You get a Social scholarship {social_scholarship} BGN')
  13.     if average_grade >= 5.50 and social_scholarship > excellence_scholarship:
  14.         print(f'You get a Social scholarship {social_scholarship} BGN')
  15.     if average_grade >= 5.50 and social_scholarship <= excellence_scholarship:
  16.         print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
  17.  
  18. elif average_grade > 5.50:
  19.     print(f'You get a scholarship for excellent results {excellence_scholarship} BGN')
  20. else:
  21.     print('You cannot get a scholarship!')
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
Top