Guest User

Untitled

a guest
Jun 17th, 2020
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.99 KB | None | 0 0
  1. income = float(input())
  2. average_grade = float(input())
  3. minimum_salary = float(input())
  4.  
  5. social_scholarship = 0.35 * minimum_salary
  6. scholarship_excellent_grades = average_grade * 25
  7.  
  8. if income <= minimum_salary and 4.50 <= average_grade < 5.50:
  9.     print(f"You get a Social scholarship {round(social_scholarship)} BGN")
  10. elif income > minimum_salary and average_grade >= 5.50:
  11.     print(f"You get a scholarship for excellent results {round(scholarship_excellent_grades)} BGN")
  12. elif income <= minimum_salary and average_grade >= 5.50:
  13.     if social_scholarship > scholarship_excellent_grades:
  14.         print(f"You get a Social scholarship {round(social_scholarship)} BGN")
  15.     elif social_scholarship == scholarship_excellent_grades:
  16.         print(f"You get a scholarship for excellent results {round(scholarship_excellent_grades)} BGN")
  17.     else:
  18.         print(f"You get a scholarship for excellent results {round(scholarship_excellent_grades)} BGN")
  19. else:
  20.     print("You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment