The challenge of programming robot motion along segments parallel or perpendicular to a given segment leads to an analysis of slopes of parallel and perpendicular lines. Students write equations for parallel, perpendicular, and normal lines. Additionally, students will and study the proportionality of segments formed by diagonals of polygons.