goganovradostin

Untitled

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

×