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?
1
Expert's answer
2019-10-12T22:28:08-0400
Dear Jenny, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment