You are on page 1of 3

# Date:30-10-2013

Q no 1#Read the salary from employee, if salary is greater than 30000, then employee pay tax of 3.3%
and medical exp of 2.1%. Find net salary???

clc
s=input('salary')
if(s>30000)
t=.033
m=0.021
s-(s*t)-(s*m)
end

Q no 2#Read the salary from employee, if salary is less than 50000, then employee pay tax of 3.3% and
medical exp of 2.1%. If salary is greater than 50000, pay tax of 6.1%, medical of 4.8% and house rent of
3.3%. Find net salary???

clc
s=input('salary')
if(s<50000)
t=0.033
m=0.021
s-(s*t)-(s*m)
else
if(s>50000)
t2=0.061
m2=0.048
hr=0.033
s-(s*t2)-(s*m2)-(s*hr)
end

Q no 3#Read the salary from employee, if salary is less than 50000, then employee pay tax of 9% and
medical exp of 2%,rest of employess pay tax of 2.8%, and medical of 0%. Find net salary???

clc
s=input('salary')
if(s>61700)
t=.09
m=.02
s-(s*t)-(s*m)
else
t=.028
m=0
s-(s*t)-(s*m)
end
Date:30-10-2013

Q no 4#Read the salary from employee, if salary is greater than 22000 and less than 44000, then
employee pay tax of 3.3% and medical exp of 2.1%. Find net salary???

clc
s= input('salary')
if((s>22000)&& (s<44000))
t=0.033
m=0.021
netsal=s-(s*t)-(s*m)
cur2str(netsal)
end

Q no 5#Read the salary from employee, if salary is greater than 22000 and less than 44000, then
employee pay tax of 3.3% and medical exp of 2.1%. If salary is in between 55000 and 66000, then pay
tax of 6.1%, medical of 4.8% and house rent of 3.3%. Find net salary???

clc
s= input('salary')
if((s>22000)&& (s<44000))
t=0.033
m=0.021
netsal=s-(s*t)-(s*m);
cur2str(netsal)
end
if((s>55000) && (s<66000))
t=0.061
m=0.048
hr=0.033
netsal=s-(s*t)-(s*m)-(s*hr);
cur2str(netsal)
end

Q no#6 if salary is 22000 or 33000 or 44000, then pay tax of 5%. Find net salary??

clc
s= input('salary')
if((s==22000) || (s==33000) || (s==44000))
t=0.05
netsal= s-s*t;
cur2str(netsal)
end
Date:30-10-2013

## Q no#7 merge the activities.

clc
select=input('enter number for call activity')
if(select==1)
s=input('salary')
if(s>30000)
t=.033
m=0.021
s-(s*t)-(s*m)
end
end

if(select==2)
clc
s= input('salary')
if((s==22000) || (s==33000) || (s==44000))
t=0.05
netsal= s-s*t;
cur2str(netsal)
end
end

if(select==3)
clc
s= input('salary')
if((s>22000)&& (s<44000))
t=0.033
m=0.021
netsal=s-(s*t)-(s*m)
cur2str(netsal)
end
end