Write a java program to compute tax owed by an individual to the county. Inputs to the program should be Name, Age, Gender (F or M), Marital Status (M, S, D, W) and taxable income. Print the following message based on income and tax % given below. [Hint: if Age < 18 and if gender is M, then he should be addressed as Master....]
Taxable Income
|
Tax % (M/D)
|
Tax % (S/W)
|
Message
|
< $8,500
|
0%
|
0%
|
(Mr/Mrs/Ms/Master) , based on the income provided, you owe no tax for the fiscal year 2017.
|
$8,500 - $24,000
|
1.0%
|
1.5%
|
(Mr/Mrs/Ms/Master) , based on the income provided you owe a tax of for the fiscal year 2017.
|
> $24,000
|
2.5%
|
3.4%
|