Advertisement
Guest User

Untitled

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