We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d60cd commit 1247986Copy full SHA for 1247986
Week 3/Task-1.py
@@ -13,7 +13,9 @@ def set(self):
13
def ComputeSalary(self):
14
hra = 0.2 * self.basic
15
da = 0.5 * self.basic
16
- pf = 0.11 * self.basic
+ pf = 0.11 * self.basic
17
+ ta = 0.075 * self.basic
18
+
19
# Condition to compute the
20
# allowance for the person
21
if self.grade == 'A':
@@ -22,7 +24,7 @@ def ComputeSalary(self):
22
24
allowance = 1500.0
23
25
else:
26
allowance = 1300.0;
- gross = round(self.basic + hra + da + allowance - pf)
27
+ gross = round(self.basic+ ta + hra + da + allowance - pf)
28
print(gross)
29
30
0 commit comments