Problem
Define a class named TaxReturn that contains a tax ID number, last name, first name, annual income, number of dependents, and amount of tax owed for a taxpayer. Include constant static fields that hold the tax rates for the situations shown in the following table.
Income ($)
|
0 dependents
|
1 dependent
|
2 or more dependents
|
0-10,000
|
0.10
|
0.08
|
0.07
|
10,001-30,000
|
0.12
|
0.11
|
0.09
|
30,001-60,000
|
0.18
|
0.15
|
0.13
|
60,001 and up
|
0.25
|
0.22
|
0.19
|
Include a static function that displays the tax table. Write a main() function that contains a single statement that displays the tax table.