Thread: Help asap!

  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I promised myself I wouldn't make a joke about "yellow pool water", increasing the level of the water.

    Another promise, down the ol' pool drain!

  2. #17
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by CommonTater View Post
    Then switch your while loop to administer on the number of baloons thrown... not the amount of water in the pool... interestingly you are already incrementing that variable at the bottom of the loop... just use it.
    Ok... a little more debugging... the problem is that distanceTraveled never hits *exactly* 35... a small modification to allow anything from 35.0 to 35.99999 solved the problem...

    Code:
             if((int) distanceTraveled ==35)
             {
               poolWater=poolWater+balloonWater;
               balloonNumHit++;
             }
    and here's the output...

    Help asap!-baloons-jpg

    I'm thinking you can clean the rest of this up yourself???

  3. #18
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Adak View Post
    I promised myself I wouldn't make a joke about "yellow pool water", increasing the level of the water.

    Another promise, down the ol' pool drain!
    Sigh .. ... some people's kids!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone Please Help! ASAP!!
    By CB44 in forum C++ Programming
    Replies: 8
    Last Post: 01-17-2011, 01:13 AM
  2. Someone Please Help! ASAP!!
    By CB44 in forum C Programming
    Replies: 1
    Last Post: 01-16-2011, 05:41 PM
  3. Need help!!!!!! Asap!!!!!
    By DMJJR1988 in forum C++ Programming
    Replies: 4
    Last Post: 09-16-2010, 01:20 AM
  4. Need Help ASAP....
    By Maxwell in forum C++ Programming
    Replies: 16
    Last Post: 09-14-2005, 06:56 PM
  5. i really need help asap
    By dinesh in forum C Programming
    Replies: 1
    Last Post: 04-24-2003, 11:22 PM