Okay to start, this is my homework assignment that I am struggling on. I do not want it done for me, I am just looking for a direction because I am really struggling with these 'for' loops.
1863
...
Type: Posts; User: NoobOfTheMonth
Okay to start, this is my homework assignment that I am struggling on. I do not want it done for me, I am just looking for a direction because I am really struggling with these 'for' loops.
1863
...
I will have to work on my formatting. However, I added the {} to what the while statement should encompass, and it still has an error, any other suggestions ? D:
Code!
<public class Lab5a
{
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