Hello!!
Sorry to contradict the before answer, but he's wrong.
The formula is correct:
k = 1/2 * mv²
If we replace it with our data:
k = 1/2 * (1000 kg) (40 m/s)²
Here is the problem, 40^2 is = 1600, so the result is wrong:
k = 500 Kg * 1600 m²/s²
And if we resolve it:
k = 800 000 Joules
Then the kinetic energy of the roller coaster car is 800 000 Joules.