It got rid of the problem error, and now I just have some more minor stuff that I can take care of, thanks a lot :D
Type: Posts; User: NoobOfTheMonth
It got rid of the problem error, and now I just have some more minor stuff that I can take care of, thanks a lot :D
I was trying to get 25 percent of the product of those numbers, however I didn't know that the percentage was the problem. I could just use .25, correct?
This is my attempt at printf on the problem areas, thanks!
if (hours_worked <= 40 )
System.out.printf( "Withholding Tax: %d", hours_worked*pay_rate*25% );
else
System.out.printf(...
Which print method should I use? printf produces the same result :(
I'm new to the forums, I am sorry if I do this incorrectly.
Here is my code :
1import java.util.Scanner;
2
3public class Lab4b
4
5{
6