How to are a Python Program to Get bonus salary of an Employee???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to are a Python Program to Get bonus salary of an Employee????

Write a Program to decide how much bonus emply will get based on his salary (Condition:-Whose Salary > 25,000 they get 10% bonus will get and whose salary<25,000 then they get 15% bonus)

4th Aug 2023, 3:40 PM
Yuvraj Jha
Yuvraj Jha - avatar
3 Answers
+ 3
Yuvraj Jha Can you share your attempt with it?
4th Aug 2023, 3:42 PM
Junior
Junior - avatar
0
Yes
4th Aug 2023, 3:44 PM
Yuvraj Jha
Yuvraj Jha - avatar
0
something is unclean. what if the salary is exactly 25_000? :D try something like this: if salary >= 25_000: return salary + (salary * 0.1) else: return salary + (salary * 0.15)
6th Aug 2023, 3:47 AM
Mihaly Nyilas
Mihaly Nyilas - avatar