===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
long b,g,h,t;
char a[20];
cout<<"\n Want to FInd Taxable amount:- \n Enter your Name: ";
cin>>a;
cout<<"\n Enter Your age: ";
cin>>b;
cout<<"\n Enter Your earning: ";
cin>>g;
cout<<"\n Enter Your Gender[1-Male, 2-Female]: ";
cin>>t;
if(t==1 && b<=50 && g>0 && g<=100000)
{h=0.4*g;
cout<<"\n "<<a<<" your Total Taxable amount is 40% i.e.: "<<h;}
else if(t==1 && b>50 && g>100000)
{h=0.7*g;
cout<<"\n "<<a<<" your Total Taxable amount is 70% i.e.: "<<h;}
else if(t==2 && b<=50 && g>0 && g<100000)
{h=0.3*g;
cout<<"\n "<<a<<" your Total Taxable amount is 30% i.e.: "<<h;}
else if(t==2 && b>50 && g>100000)
{h=0.2*g;
cout<<"\n "<<a<<" your Total Taxable amount is 20% i.e.: "<<h;}
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
long b,g,h,t;
char a[20];
cout<<"\n Want to FInd Taxable amount:- \n Enter your Name: ";
cin>>a;
cout<<"\n Enter Your age: ";
cin>>b;
cout<<"\n Enter Your earning: ";
cin>>g;
cout<<"\n Enter Your Gender[1-Male, 2-Female]: ";
cin>>t;
if(t==1 && b<=50 && g>0 && g<=100000)
{h=0.4*g;
cout<<"\n "<<a<<" your Total Taxable amount is 40% i.e.: "<<h;}
else if(t==1 && b>50 && g>100000)
{h=0.7*g;
cout<<"\n "<<a<<" your Total Taxable amount is 70% i.e.: "<<h;}
else if(t==2 && b<=50 && g>0 && g<100000)
{h=0.3*g;
cout<<"\n "<<a<<" your Total Taxable amount is 30% i.e.: "<<h;}
else if(t==2 && b>50 && g>100000)
{h=0.2*g;
cout<<"\n "<<a<<" your Total Taxable amount is 20% i.e.: "<<h;}
getch();
}
===========================================================================
No comments:
Post a Comment