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.

25th Oct 2019, 2:10 PM
Dikshant Vinod Bhaisare
4 Answers
+ 3
What have you tried so far?
25th Oct 2019, 2:22 PM
Russ
Russ - avatar
+ 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.
25th Oct 2019, 2:44 PM
Russ
Russ - avatar
+ 1
Ok i can try again
25th Oct 2019, 2:45 PM
Dikshant Vinod Bhaisare
0
I can try by if , elif , else method
25th Oct 2019, 2:41 PM
Dikshant Vinod Bhaisare