again with the same problem about falling distance

sorry but what do you mean by code. what code and do i have to put in the distance falling formula in there if yes where and how do i define it.
[/code]
#include <cmath>
#include <iostream>
#define GRAV

double fallingDistance(double);

int main()
{
int i;
int d, g, t;
double time,dist;
for(i = 0; i < 10; i++)
{
time = i + 1.0;
dist = fallingDistance(time);
cout << "Given gravity of, " << GRAV <<
" meters per second squared, an object will fall "
<< dist << " meters in " << time << " seconds." << endl;
}
return 0;
}

double fallingDistance(double time)
{
d = 1/2 * g * pow(t,2)
}
[/code]
here is what i got do i need anything else. need this for tommorow to turn in.
There is no justification fo starting this new thread
Topic archived. No new replies allowed.