Sichanov

eee

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