Answer:
There is no complicated algorithm required for this problem. After getting the inputs from initial velocity (u), acceleration (a), and time (t), you can use the kinematics formula: x=ut + (1/2)at^2 to solve for the distance traveled.
Step-by-step explanation:
Some very simple pseudocode:
1. Get Initial Velocity and set as u
2. Get Acceleration and set as a
3. Get Time and set as t
4. Set x to u*t + (1/2)*a*t*t
5. Return x