Program this kind of physics using only Lite-C is not that easy, but also is not soooo difficult. Its up to your knowledge of programming and physics.

Newton (free) will do the job very well.