svephoto

Scholarship [python] - another one

Nov 29th, 2019
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2. salary_bgn = float(input())
  3. average = float(input())
  4. minimal_salary = float(input())
  5.  
  6. social_bonus = minimal_salary * 0.35
  7. great_bonus = average * 25
  8.  
  9. if average >= 5.5:
  10.     if great_bonus >= social_bonus or salary_bgn > minimal_salary:
  11.         print(f"You get a scholarship for excellent results {math.floor(great_bonus)} BGN")
  12.     else:
  13.         print(f"You get a Social scholarship {math.floor(social_bonus)} BGN")
  14. elif salary_bgn < minimal_salary and average > 4.5:
  15.     print(f"You get a Social scholarship {math.floor(social_bonus)} BGN")
  16. else:
  17.     print("You cannot get a scholarship!")
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×