Python :: Employee Bonus Calculation

 # @title Calculate Employee Bonus

# New joinee (i.e < 1 Year) - No Bonus
# Experience > 1 Year and < 5 Years - 5%
# Experience > 5 Years - 12%
# Calculate final Take home!

Income = float(input('Enter Income :'))
YearsofExperiece = float(input('Enter Years of Experiece In Year(s):'))

if YearsofExperiece < 1:
print('Not Eligible for Bonus')
elif YearsofExperiece >= 1 and YearsofExperiece <=5:
Bonus=(Income*5)/100
FinalSalary=Income+(Income*5/100)
print('My Bonus Amount:',Bonus, '& Final Salary:', FinalSalary)
else:
Bonus=(Income*12)/100
FinalSalary=Income+(Income*12/100)
print('My Bonus Amount:',Bonus, '& Final Salary:', FinalSalary)


Comments