Advertisement
Guest User

Untitled

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