Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. import math
  2.  
  3. salary = float(input())
  4. averageGrade = float(input())
  5. minSalary = float(input())
  6.  
  7. socialScholarship = 0.35 * minSalary
  8. scholarship = averageGrade * 25
  9.  
  10. if averageGrade <= 4.5:
  11. print('You cannot get a scholarship!')
  12. elif averageGrade > 4.5 and averageGrade < 5.5:
  13. if salary > minSalary:
  14. print('You cannot get a scholarship!')
  15. elif salary <= minSalary:
  16. print(f'You get a Social scholarship {math.floor(socialScholarship)} BGN')
  17. elif averageGrade >= 5.5:
  18. if salary > minSalary:
  19. print(f'You get a scholarship for excellent results {math.floor(scholarship)} BGN')
  20. elif salary <= minSalary:
  21. if socialScholarship > scholarship:
  22. print(f'You get a Social scholarship {math.floor(socialScholarship)} BGN')
  23. elif socialScholarship <= scholarship:
  24. print(f'You get a scholarship for excellent results {math.floor(scholarship)} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement