Advertisement
Guest User

Scholarships

a guest
Feb 23rd, 2020
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  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!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement