Advertisement
Merucial

Untitled

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