LIBRAR
A main method to compute nel suun)
netsalary = basicpay + hra + da
12. Design a program in Java to calculate the tax for the people living in Utopia.
Specify a class taxpayer whose class description is given below:
Class Name :
taxpayer
Data members :
int pan
char name [20]
float taxableinc
float tax
Member methods : inputdata()
displaydata()
computetax()
The tax is calculated according to the following rules :
TOTAL ANNUAL TAXABLE INCOME
Up to 60000
Any amount above 60000 but up to 150000
5%
Any amount above 150000 but up to 500000
10%
Any amount above 500000
15%
Coverage
Introductid
respect to
classes:
Scope
Class as
data ty
the us
compa
user
wrap
exar
RATE OF TAXATION
0%
The
output it in the following format :
Pan no.
Name
Total Annual Income
Taxable Income
Tax
to store the personal account
to store the name of a person
to store the total annual tarade
to store the tax that is calculate
to enter the data for a taxpayet
to display the data for a taxpayer
to compute tax for a taxpayer
In the main program, create an object of the type taxpayer. Calculate the tax for the taxaven
Answers
Answered by
2
Answer:
sorry this is very hard
Similar questions