calculate the value S according to the formula S = (1.0/2)*a*t^2 and store that result in the variable distance. I have everything else set up, this is the only thing im stuck on. the variable type of distance is double.
Ok, I (and others) am willing to help. However, it's not clear where you are stuck.
Maybe you could post the code you've written for this so far and we'll take it from there.
Also, did you look at the assignment operator here: http://www.cplusplus.com/doc/tutorial/operators/
oh, i previously tried it without it like this distance = (1.0/2) * acceleration * time ^ 2;
and it gave me the error: expression must have integral or unscoped enum type