Please enable JavaScript to use CodeHS

Coding in Math

Shapes and The Pythagorean Theorem

[Middle School, 4-6 Hours] Students learn to code with variables and user input in order to develop a final program that determines the dimensions of a roof and the quantity of construction materials needed.

Lessons

2.1 Math and Programming

  • Precision Roofing and Python
  • Python Math
  • PEMDAS Review
  • Math and Printing
  • Printing Text
  • +4 more

2.2 Programming with Variables

  • Programming with Variables
  • Printing with Variables
  • Area and Perimeter with Variables
  • Triangle Variables
  • Custom Wood Doors
  • +1 more

2.3 The Pythagorean Theorem

  • The Pythagorean Theorem
  • Pythagorean in Python
  • The Pythagorean Theorem
  • Crane Height

2.4 Getting User Input

  • User Input
  • User Input
  • Rectangles with Users
  • Adding Input to Doors

2.5 Final Roofing Project

  • Precision Roofing Program

Courses that include this module