Murry4

Scholarship - working!

Sep 17th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. import math
  2.  
  3. dohod = float(input())
  4. grade = float(input())
  5. pay_check = float(input())
  6.  
  7. scholarship = 0
  8. social_scholarship = 0
  9.  
  10. excellent_grade = grade >= 5.5
  11. money = dohod < pay_check
  12. avg_grade = grade > 4.5
  13.  
  14.  
  15. if money and avg_grade:
  16.   social_scholarship = pay_check * 0.35
  17. if excellent_grade:
  18.   scholarship = grade * 25
  19.  
  20. if social_scholarship > scholarship:
  21.     print(f"You get a Social scholarship {math.floor(social_scholarship)} BGN")
  22. elif social_scholarship < scholarship:
  23.     print(f"You get a scholarship for excellent results {math.floor(scholarship)} BGN")
  24. else:
  25.     print(f"You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment