Add programming blocks to properly model the motion of the cart if the given force is applied to the left or the right. The force is applied by pressing the right or left arrow key. The magnitude of the applied force and the mass of the cart can be modified by the sliders for those variables. Note the force is only applied when an arrow key is pressed.
Use the basic principles and relationships between force, mass, acceleration, velocity and position to properly model the motion of the cart. Keep the program as simple as possible. (Hint: use one cycle of the main program loop as your time increment to simplify calculations).