Advertisement
svephoto

Scholarship [python]

Nov 21st, 2019
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import math
  2. money_income = float(input())
  3. average_success = float(input())
  4. min_salary = float(input())
  5. social_scholarship = 0.35 * min_salary
  6. excellent_scholarship = average_success * 25
  7. if average_success >= 5.5:
  8. if money_income > min_salary or social_scholarship <= excellent_scholarship:
  9. print(f"You get a scholarship for excellent results {math.floor(excellent_scholarship)} BGN")
  10. else:
  11. print(f"You get a Social scholarship {math.floor(social_scholarship)} BGN")
  12. elif average_success > 4.5 and money_income < min_salary:
  13. print(f"You get a Social scholarship {math.floor(social_scholarship)} BGN")
  14. else:
  15. print("You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement