//Example 4.4 //Also see Example 4.3 m=12+7;//Total mass of System 2, mass of cart+mass of equipment, (kg) a=1.5;//Acceleration (m/s^2), See Example 4.3 F_net=m*a;//Net external force (N) f=24;//Net opposing force (N) F_prof=F_net+f;//Force exerted by the professor on the cart (N) printf('Force exerted by the professor on the cart = %0.1f N',F_prof) //Answer varies due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest