Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- income = float(input())
- average_grade = float(input())
- min_salary = float(input())
- social_scholarship = int(min_salary * 0.35)
- excellent_scholarship = int(average_grade * 25)
- # 1. Успех над 5.50 включително
- # 1.1 Доходът е по-голям от минималната заплата - даваме стипендия за отличен успех:
- # 1.2 Доходът е по-малък от минималната заплата:
- # При равни или по-висока стипендия за отличен успех - даваме нея
- # Даваме социална стипендия
- # 2. уеспях междъ 4.50 и 5.50
- # 2.1 Доходът е по-малък от минималната заплата:
- # 2.2 Не даваме нишо
- # 3. Успех под 4.50 - Няма да взима стипендия
- if average_grade >= 5.50:
- if income > min_salary:
- print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
- else:
- if excellent_scholarship >= social_scholarship:
- print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
- else:
- print(f"You get a Social scholarship {social_scholarship} BGN")
- elif average_grade > 4.50:
- if income < min_salary:
- print(f"You get a Social scholarship {social_scholarship} BGN")
- else:
- print(f"You cannot get a scholarship!")
- else:
- print(f"You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement