Sichanov

rerer

Jan 17th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. average_grade = float(input())
  5. min_salary = float(input())
  6.  
  7. social_money = math.floor(min_salary * 0.35)
  8. exelent_money = math.floor(average_grade * 25)
  9.  
  10. if income >= min_salary and average_grade < 5.50:
  11.     print('You cannot get a scholarship!')
  12. elif income < min_salary and average_grade <= 4.50:
  13.     print('You cannot get a scholarship!')
  14. if income < min_salary and 4.50 < average_grade < 5.50:
  15.     print(f'You get a Social scholarship {social_money} BGN')
  16. elif average_grade >= 5.50 and income < min_salary:
  17.  
  18.     if social_money > exelent_money:
  19.         print(f'You get a Social scholarship {social_money} BGN')
  20.     else:
  21.         print(f'You get a scholarship for excellent results {exelent_money} BGN')
  22. elif income >= min_salary and average_grade >= 5.50:
  23.     print(f'You get a scholarship for excellent results {exelent_money} BGN')
  24.  
Advertisement
Add Comment
Please, Sign In to add comment