Sichanov

d

Jan 21st, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. incoming = float(input())
  2. grade = float(input())
  3. min_salary = float(input())
  4. social_scholarship = min_salary * 0.35
  5. excellent_scholarship = grade * 25
  6. if grade >= 5.50:
  7.     if social_scholarship > excellent_scholarship and incoming < min_salary:
  8.         print(f"You get a Social scholarship {int(social_scholarship)} BGN")
  9.     else:
  10.         print(f"You get a scholarship for excellent results {int(excellent_scholarship)} BGN")
  11. elif 4.50 < grade < 5.50:  # elif grade > 4.50:
  12.     if incoming < min_salary:
  13.         print(f"You get a Social scholarship {int(social_scholarship)} BGN")
  14.     else:
  15.         print("You cannot get a scholarship!")
  16. elif grade <= 4.50:  #else:
  17.     print("You cannot get a scholarship!")
  18.  
Advertisement
Add Comment
Please, Sign In to add comment