Can someone help me out about homework?

I'm getting stuck of making c++ coding. I already have a bit coding. but I'm not really sure if this is the right one. The question is: A parachutist of mass 68100 gr jumps out of a stationary hot air baloon. Use Eq. v = ((g * m)/c) * (1-exp(-(c/m) * t)) to compute velocity prior to opening the chute. The drag coefficient is equal to 12500 gr/s. Note that t=the independent variable, cand m=parameters, and g=the forcing function. Help me please, master of c++ in here

#include <iostream>
#include <math.h>

using namespace std;

double v(double t)

int main()
{
double dt, t, n;

dt = t/n;.

for (int=0; i<n; ++i)
v(i*dt);
}

double v(double t)
{

const double c = 12500;
const double m = 68100;
const double g = 9.81;
double v;

v = ((g * m)/c) * (1-exp(-(c/m) * t));

cout << "v(t) = " << v << endl;

system("pause");

return 0;
}

Topic archived. No new replies allowed.