Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Beginner question

    by Norm
    Replies
    10
    Views
    1,095

    [SOLVED] Re: Beginner question

    Are the values: bytes and seconds? Dividing those two would give a rate: bytes/second Not a total.

    What is the total you are trying to compute? What units is it in? time or bytes or ???

    Is...
  2. Thread: Beginner question

    by Norm
    Replies
    10
    Views
    1,095

    [SOLVED] Re: Beginner question

    Do you have the formula or equation to do that?
  3. Thread: Beginner question

    by Norm
    Replies
    10
    Views
    1,095

    [SOLVED] Re: Beginner question

    Is that value input by the user?
    If so, use the same technique that the code uses to get the totalSec value from the user: print a message and use a Scanner class method to read the user's input.
  4. Thread: Beginner question

    by Norm
    Replies
    10
    Views
    1,095

    [SOLVED] Re: Beginner question

    One possible problem could be the code is doing int math:
    40/60 = 0
    vs floating point
    40/60.0 = 0.66666666
Results 1 to 4 of 4