Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    Don't feel sorry. It's called the learning process.
  2. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    Now work on the math.
  3. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    That is a recursive call when a method calls itself repeatedly.

    Try calling the version of the method that takes the arguments needed to do the computation:


    calculateNetPay(double hours,...
  4. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    What happens when you compile and execute it?
    what prints out?

    Where do you call the method and give it the values it needs to compute the net pay?
  5. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    Does the code compile, execute and do what you want?

    Why does the method return 0.0 instead of the computed amount?
  6. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    Did you get the links I added to my last post?
  7. Replies
    19
    Views
    1,655

    Re: Help with returning variable from method

    What variable has the value of net pay that you are trying to return? Where is the method that is supposed to return the net pay?

    What do you mean by "return"? In many programming languages,...
Results 1 to 7 of 7