kostovhg

scholarship_ii

Mar 21st, 2021
874
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2. income_in_bgn = float(input())
  3. average_score = float(input())
  4. minimum_salary_level = float(input())
  5.  
  6. social_scholarship = 0
  7. excellent_score_scholarship = 0
  8.  
  9. if income_in_bgn < minimum_salary_level and average_score >= 4.5:
  10.     social_scholarship = minimum_salary_level * 0.35
  11. if average_score >= 5.5:
  12.     excellent_score_scholarship = average_score * 25
  13.  
  14. if excellent_score_scholarship and excellent_score_scholarship >= social_scholarship:
  15.     print(f"You get a scholarship for excellent results {math.floor(excellent_score_scholarship):.0f} BGN")
  16. elif social_scholarship:
  17.     print(f"You get a Social scholarship {math.floor(social_scholarship):.0f} BGN")
  18. else:
  19.     print("You cannot get a scholarship!")
RAW Paste Data