This code is written for assignment purpose for SIF2007 class to model the motion of an object that is subjected to the air resistance.