0

I wonder if it okay to write a big equation in System.out like this or Seperate

else if (earn>=200 && earn<=693)
					{
					System.out.println("Excess Earning" + (earn-200));
					excess = (8.40+((earn-200)*.15));
					System.out.println("Tax Withholding" + excess);
		        	}
2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by musthafa.aj
0

Thank musthafa for help newbie (me) again. It end up compiled succesful, I will try read it carefully next time. Sorry for such a simple question.

Edited by Dasau: n/a

0

hey


you do here
excess = earn-200; then again you doing..


System.out.println((8.40+(((excess-200))*.15)));

then you get wrong

if you do directly

as per your output needs...

System.out.println((8.40+(((excess-200))*.15)));

without doing this excess = earn-200;

you get correct..

Edited by musthafa.aj: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.