Search:

Type: Posts; User: NoobOfTheMonth

Search: Search took 0.16 seconds.

  1. Replies
    2
    Views
    1,431

    For loop help

    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
    ...
  2. Replies
    3
    Views
    1,048

    Re: Help compiling!

    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:
  3. Replies
    3
    Views
    1,048

    Help compiling!

    Code!



    <public class Lab5a

    {
  4. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    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
  5. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    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?
  6. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    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(...
  7. Replies
    9
    Views
    1,222

    Re: Illegal start of expression!

    Which print method should I use? printf produces the same result :(
  8. Replies
    9
    Views
    1,222

    Illegal start of expression!

    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
Results 1 to 8 of 8