Finding Approximate Pythagorean Triples (and Applications to LEGO Robot Building)

Research output: Other contribution

Abstract

This assignment combines programming and data analysis to determine good combinations of side lengths that approximately satisfy the Pythagorean Theorem for right triangles. This can be a standalone exercise using a wide variety of programming languages, but the results are useful for determining good ways to assemble LEGO pieces in robot construction, so the exercise can serve to integrate three different units of the Exploring Computer Science high school curriculum: "Programming", "Computing and Data Analysis", and "Robotics". Sample assignment handouts are provided for both Scratch and Java programmers. Ideas for several variants of the assignment are also provided.

Original languageAmerican English
DOIs
StatePublished - Jul 17 2022

Keywords

  • Computer programming

Disciplines

  • Computer Sciences
  • Geometry and Topology
  • Other Computer Sciences
  • Other Education
  • Robotics

Cite this