Define a class Taxpayer, whose class description is given below:-
Private Members:-
int pan - to store the personal account no.
char name[20] - to store the name
float taxableinc - to store the total annual taxable income.
float tax - to store the tax that is calculated.
computetax ( )- A function to compute tax from the following rule:-
Total Annual Taxable Income Rate of Taxation
Up to 60000 0%
Greater than 60000, less than = 150000 5%
Above 150000, upto 500000 10%
Above 500000 15%
Public Members :-
inputdata ( ) - A function to enter the data and call the compute tax( ) function.
display( ) - To display the data.
Answers
Answered by
2
computetax ( )- A function to compute tax from the following rule:-
Total Annual Taxable Income Rate of Taxation
Up to 60000 0%
Greater than 60000, less than = 150000 5%
Above 150000, upto 500000 10%
Above 500000 15%
Public Members :-
inputdata ( ) - A function to enter the data and call the compute tax( ) function.
display( ) - To display the data.
aa bb cc
Total Annual Taxable Income Rate of Taxation
Up to 60000 0%
Greater than 60000, less than = 150000 5%
Above 150000, upto 500000 10%
Above 500000 15%
Public Members :-
inputdata ( ) - A function to enter the data and call the compute tax( ) function.
display( ) - To display the data.
aa bb cc
Similar questions
English,
7 months ago
English,
7 months ago
English,
7 months ago
Political Science,
1 year ago
Physics,
1 year ago