Search:

Type: Posts; User: tayexdrums

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,771

    Rereading a data file

    I am reading a data file like this..


    /**************INPUT**************************/
    //READ FILE TO DATAFILE until end of file ------------------
    //keep scanning the values of...
  2. Replies
    36
    Views
    3,160

    That is correct. Would I ask that if it weren't?

    That is correct. Would I ask that if it weren't?
  3. Replies
    36
    Views
    3,160

    Success! That is exactly what it should look...

    Success! That is exactly what it should look like!=]
    However I think I am supposed to use a random number generator to choose random values for balloonLaunchVelocity, balloonLaunchAngle,...
  4. Replies
    36
    Views
    3,160

    oops, okay, now here's what I get everytime I run...

    oops, okay, now here's what I get everytime I run the program...
    10923
  5. Replies
    36
    Views
    3,160

    #include //standard library...

    #include<stdio.h> //standard library definitions
    #include<stdlib.h>
    #include<math.h> //math definitions
    #define BAL_HEIGHT 12 //balcony height in feet
    #define G 32 ...
  6. Replies
    36
    Views
    3,160

    Okay, I see, that makes sense=] I'm still...

    Okay, I see, that makes sense=]
    I'm still getting wrong output though=[
  7. Replies
    36
    Views
    3,160

    Right I know that...so the first value will be...

    Right I know that...so the first value will be stored in the variable balloonLaunchAngle, the second value will be stored in the variable balloonLaunchVelocity, the third value will be stored in...
  8. Replies
    36
    Views
    3,160

    Right I know that...so the first value will be...

    Right I know that...so the first value will be stored in the variable balloonLaunchAngle, the second value will be stored in the variable balloonLaunchVelocity, the third value will be stored in the...
  9. Replies
    36
    Views
    3,160

    that's what I thought it would look like. I guess...

    that's what I thought it would look like. I guess what I'm asking is how to read in those values with the compiler KNOWING that the first column is the balloonLaunchAngle, second column...
  10. Replies
    36
    Views
    3,160

    Alright, that gives me my output without the...

    Alright, that gives me my output without the error message so I'm getting somewhere!
    There is a picture of what the output looks like in a picture in one of the above posts
  11. Replies
    36
    Views
    3,160

    So how would I put that in syntax?

    So how would I put that in syntax?
  12. Replies
    36
    Views
    3,160

    Strahd: I chose the last option of changing my...

    Strahd:
    I chose the last option of changing my macro but now I have the same problem I started with=[
  13. Replies
    36
    Views
    3,160

    from left to right they are...balloonLaunchAngle,...

    from left to right they are...balloonLaunchAngle, balloonLaunchVelocity, throwersHeight, and balloonDiameter
  14. Replies
    36
    Views
    3,160

    oh yeah, I don't exactly know how to scan in from...

    oh yeah, I don't exactly know how to scan in from the file the balloonLaunchAngle, balloonLAunchVelocity, ThrowersHeight, from the text file...I think its supposed to be random
  15. Replies
    36
    Views
    3,160

    Okay, so you're saying that I have to use the...

    Okay, so you're saying that I have to use the actual filename balloonValues.txt?
  16. Replies
    36
    Views
    3,160

    balloonValues.txt I defined with a constant...

    balloonValues.txt
    I defined with a constant macro at the top

    #include FILENAME balloonValues.txt
  17. Replies
    36
    Views
    3,160

    10922 That is what I got as an output so I no...

    10922
    That is what I got as an output so I no longer get both an error message and my output, but the output is still wrong
  18. Replies
    36
    Views
    3,160

    stupid computer class...need help please

    I have to write a program that reads in the values needed to calculate the how balloon it will take to fill a swimming pool. I will attach the directions along with the txt file. Here is my attempt...
  19. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    I got information to appear! but its still not...

    I got information to appear! but its still not right...however, I think I can figure out why...hopefully.lol
    thank you
  20. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    I know, i know...I thank you SO much for your...

    I know, i know...I thank you SO much for your assistance no doubt about it. I just think I was reading it so fast that I did what I saw first without thinking about it.

    Anyhow, I the poolWater...
  21. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    No need to get hostile!lol But okay, I need to...

    No need to get hostile!lol
    But okay, I need to find a better to change the control variable poolWater instead of using distanceTraveled==35
  22. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    All I did was add the #include header but...

    All I did was add the #include<time.h> header but still...nothing=[
  23. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    Okay, let me do that and see if it works...

    Okay, let me do that and see if it works...
  24. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    I just looked in my programming book and it says...

    I just looked in my programming book and it says that when using printf of a double use %f
    I'm not getting anything at all on my MS-DOS box
  25. Thread: Help asap!

    by tayexdrums
    Replies
    17
    Views
    2,898

    I added those printf's in there but commented...

    I added those printf's in there but commented them out temporarily so I know why I'm not seeing those. I thought about that...which double variables are you referring to?
Results 1 to 25 of 26
Page 1 of 2 1 2