SHARE
TWEET

Untitled

a guest Nov 17th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3. income_in_leva = float(input())
  4. grade = float(input())
  5. minimal_wage = float(input())
  6.  
  7. social_benefit = 0.35
  8. social_scholarship = minimal_wage * social_benefit #по социално ако няма отличен
  9. scholarship_by_grade = grade * 25 # за отличен
  10.  
  11. if income_in_leva >= minimal_wage and grade < 5.50:
  12.     print("You cannot get a scholarship!")
  13. elif income_in_leva >= minimal_wage and  grade <= 5.50:
  14.     if scholarship_by_grade > social_scholarship:
  15.         print(f'You get a scholarship for excellent results {math.floor(scholarship_by_grade)} BGN')
  16.     if income_in_leva <= minimal_wage and grade < 5.50:
  17.         social_scholarship > scholarship_by_grade
  18.         print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  19.     if social_scholarship >= scholarship_by_grade:
  20.         print(f'You get a scholarship for excellent results {math.floor(scholarship_by_grade)} BGN')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top