kalin_inkov

Lecture2ExZad8

Sep 23rd, 2020
752
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import floor
  2. income = float(input())
  3. score = float(input())
  4. salary = float(input())
  5. if score >= 4.5 or score >= 5.5 or income < salary:
  6.     if score >= 4.5 and income < salary:
  7.         scholarship = 0.35 * salary
  8.         print(f'You get a Social scholarship {floor(scholarship)} BGN')
  9.     elif score >= 5.5:
  10.         scholarship = 25 * score
  11.         print(f"You get a scholarship for excellent results {floor(scholarship)} BGN")
  12.     elif income > score:
  13.         print("You cannot get a scholarship!")
  14.     elif score >= 4.5 and income < salary and score >= 5.5:
  15.         scholarship_soc = 0.35 * salary
  16.         scholarship_ex = 25 * score
  17.         if scholarship_ex > scholarship_soc:
  18.             print(f'You get a Social scholarship {floor(scholarship_ex)} BGN')
  19.         elif scholarship_ex < scholarship_soc:
  20.             print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
  21.         elif scholarship_ex == scholarship_soc:
  22.             print(f'You get a Social scholarship {floor(scholarship_ex)} BGN')
  23.  
  24. elif score < 4.5 or income > salary:
  25.     print("You cannot get a scholarship!")
  26.  
RAW Paste Data