0
How to calculate dearness allowance in python3
Consider an organization, in which DA (Dearness Allowance) of an employee is calculated depending on the basic salary (category) of employee. Write a program to input basic salary of an employee and calculate DA as per following rules: For Basic Salary >= 10000 and <= 20000, 10% of basic salary. For Basic Salary > 20000 and <= 50000, 15% of basic salary. For Basic Salary > 50000 and <= 100000, 20% of basic salary. For Basic Salary > 100000, DA is not given.
4 odpowiedzi
+ 3
What have you tried so far?
+ 2
Try it then! If you get stuck, show us. We're not just going to do it all for you but we will help you if you've at least shown an effort.
+ 1
Ok i can try again
0
I can try by if , elif , else method