Distinguish distance from displacement and speed from velocity, and calculate average speed and average velocity.