I am reading a data file like this..
/**************INPUT**************************/
//READ FILE TO DATAFILE until end of file ------------------
//keep scanning the values of...
Type: Posts; User: tayexdrums
I am reading a data file like this..
/**************INPUT**************************/
//READ FILE TO DATAFILE until end of file ------------------
//keep scanning the values of...
That is correct. Would I ask that if it weren't?
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,...
oops, okay, now here's what I get everytime I run the program...
10923
#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 ...
Okay, I see, that makes sense=]
I'm still getting wrong output though=[
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...
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...
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...
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
So how would I put that in syntax?
Strahd:
I chose the last option of changing my macro but now I have the same problem I started with=[
from left to right they are...balloonLaunchAngle, balloonLaunchVelocity, throwersHeight, and balloonDiameter
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
Okay, so you're saying that I have to use the actual filename balloonValues.txt?
balloonValues.txt
I defined with a constant macro at the top
#include FILENAME balloonValues.txt
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
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...
I got information to appear! but its still not right...however, I think I can figure out why...hopefully.lol
thank you
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...
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
All I did was add the #include<time.h> header but still...nothing=[
Okay, let me do that and see if it works...
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
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?