Menu

[solved] – Question 96421

final double INCOME_TAX_PERCENT = 7.60; // 7.60%
int income = // assume that a valid income has been assigned;
if (income > 25000)
INCOME_TAX_PERCENT = IMCOME_TAX_PERCENT + .01;
double incomeTax = income * INCOME_TAX_PERCENT / 100;
System.out.println(incomeTax);
Assume that the income tax calculation is a straight forward calculation of income times the income tax percentage.
Describe why the code will not correctly print the income tax?

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *