Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. income = float(input())
  2. sreden_uspeh = float(input())
  3. min_salary = float(input())
  4.  
  5. social_scholarship = 0
  6. scholarship = 0
  7.  
  8. if income < min_salary and sreden_uspeh > 4.50:
  9. social_scholarship = min_salary * 0.35
  10. if sreden_uspeh >= 5.50:
  11. scholarship = sreden_uspeh * 25
  12.  
  13. scholarship = int(scholarship)
  14. social_scholarship = int(social_scholarship)
  15. if (income >= min_salary and sreden_uspeh < 5.50) or (income < min_salary and sreden_uspeh < 4.5):
  16. print('You cannot get a scholarship!')
  17. elif social_scholarship > scholarship:
  18. print(f'You get a Social scholarship {social_scholarship} BGN')
  19. elif scholarship > social_scholarship:
  20. print(f'You get a scholarship for excellent results {scholarship} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement