Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
86
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. money_income = float(input())
  3. grade_average = float(input())
  4. min_salary = float(input())
  5. social_scholarship = 0.35*min_salary
  6. excellent_scholarship = grade_average*25
  7. if social_scholarship > excellent_scholarship:
  8.     scholarship = social_scholarship
  9. else:
  10.     scholarship = excellent_scholarship
  11. if money_income < min_salary and 4.50 <= grade_average < 5.50:
  12.     print(f"You get a Social scholarship {math.floor(social_scholarship)} BGN")
  13. elif grade_average >= 5.50:
  14.     print(f"You get a scholarship for excellent results {math.floor(excellent_scholarship)} BGN")
  15. else:
  16.     print(f"You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement