Search:

Type: Posts; User: anduril462

Search: Search took 0.09 seconds; generated 34 minute(s) ago.

  1. Replies
    16
    Views
    6,904

    Nice, looks pretty good. One correction to your...

    Nice, looks pretty good. One correction to your formulas (I didn't read Tim's post #10 carefully):

    At the end of your precent = ... lines, you always do (something - 1.0). You don't always want...
  2. Replies
    16
    Views
    6,904

    Well, your formula is correct, and the numbers...

    Well, your formula is correct, and the numbers you plugged in are correct, and unless you had a typo on the calculator, your answer is correct. My intuition agrees, 45% is just a little less than...
  3. Replies
    16
    Views
    6,904

    We were all there at one point in our lives. ...

    We were all there at one point in our lives.

    The short answer is because that's what the C standard says you must do (and argc is the only other parameter besides argv you can use*). More info is...
  4. Replies
    16
    Views
    6,904

    Your division is upside-down, and I have no idea...

    Your division is upside-down, and I have no idea where that j = .27 bit came from. Reread my second to last paragraph from my previous post. Hopefully it will be clear enough on second inspection....
  5. Replies
    16
    Views
    6,904

    int main instead of void main....check return 0;...

    int main instead of void main....check
    return 0; at the end of main....check
    descriptive variable names....check
    defined constants instead of magic numbers....check
    working on small parts at a...
Results 1 to 5 of 5