svephoto

Scholarship [python]

Jul 26th, 2020 (edited)
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. gpa = float(input())
  5. min_wage = float(input())
  6. social = 0.35 * min_wage
  7. excellent = gpa * 25
  8.  
  9. if gpa >= 5.50:
  10.     if (excellent >= social) or (income > min_wage):
  11.         print(f"You get a scholarship for excellent results {math.floor(excellent)} BGN")
  12.     else:
  13.         print(f"You get a Social scholarship {math.floor(social)} BGN")
  14. elif (income < min_wage) and (gpa > 4.50):
  15.     print(f"You get a Social scholarship {math.floor(social)} BGN")
  16. else:
  17.     print("You cannot get a scholarship!")
  18.  
Add Comment
Please, Sign In to add comment