1 2 3 4 5 6 7
clc //Example 4.2 //calculate the kinetic energy of bullet m=0.01;//lbm mass of bullet v=2000;//ft/s KE=(m*v^2/2)*(1.356/32.2)//J printf("the kinetic energy of bullet is %f J",KE);