Skip to content

Commit 1247986

Browse files
Added task 1
1 parent 50d60cd commit 1247986

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Week 3/Task-1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def set(self):
1313
def ComputeSalary(self):
1414
hra = 0.2 * self.basic
1515
da = 0.5 * self.basic
16-
pf = 0.11 * self.basic
16+
pf = 0.11 * self.basic
17+
ta = 0.075 * self.basic
18+
1719
# Condition to compute the
1820
# allowance for the person
1921
if self.grade == 'A':
@@ -22,7 +24,7 @@ def ComputeSalary(self):
2224
allowance = 1500.0
2325
else:
2426
allowance = 1300.0;
25-
gross = round(self.basic + hra + da + allowance - pf)
27+
gross = round(self.basic+ ta + hra + da + allowance - pf)
2628
print(gross)
2729

2830

0 commit comments

Comments
 (0)