Start with the maths, it's pretty simple: Acceleration is the change in velocity over time.
Equation: a = (v-u) / t
Where
a is the accelleration
v is the current speed
u is the initial speed
t is the time
(This is from a very, very quick google:
calculate speed of accelerating object - Google Search[
^]
The top link took me here:
BBC Bitesize - GCSE Physics - Speed, velocity and acceleration - Revision 1[
^]
And page 3 covers acceleration:
BBC Bitesize - GCSE Physics - Speed, velocity and acceleration - Revision 3[
^]
So to calculate the speed at any given time, all you have to do is rework the equation:
v = (a * t) + u
You know the acceleration (or you can't work out the speed at all), the t is incremented by 30 every interval, and you know the initial speed. (To be honest, you can work this out just by looking at the units involved. Acceleration is in m/s
2 and velocity is in m/s so the initial equation is pretty obvious!)
So all you have to do is write a quick loop which increments t and print the results each time interval.
If the acceleration isn't constant, the maths gets more complex, but Google can find that for you as well.