Sichanov

wrong result2

Nov 9th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. import math
  2.  
  3.  
  4. family_income = float(input())
  5. student_gpa = float(input())
  6. minimum_income = float(input())
  7.  
  8. social_scholarship = 0.35 * minimum_income
  9. grade_scholarship = student_gpa * 25
  10.  
  11. if family_income <= minimum_income and 5.5 > student_gpa > 4.5:
  12.     print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  13.  
  14. elif family_income > minimum_income and student_gpa >= 5.5:
  15.     print (f'You get a scholarship for excellent results {math.floor(grade_scholarship)} BGN')
  16.  
  17. elif family_income <= minimum_income and student_gpa >= 5.5:
  18.     if social_scholarship > grade_scholarship:
  19.         print(f'You get a Social scholarship {math.floor(social_scholarship)} BGN')
  20.     else:
  21.         print(f'You get a scholarship for excellent results {math.floor(grade_scholarship)} BGN')
  22.  
  23. else:
  24.     print('You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment