Advertisement
Guest User

Scholarship

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