Students explore how variables can be used in numerical calculations by making two changes to a program. First, they fix the erroneous mathematical calculation of the area of a rectangle in the program. Second, they add a calculation for the perimeter of a rectangle.
Students use formulas for the area and perimeter of rectangles.
Students use variables in a program for the first time. They use variables to store data (input) and use operators to make and display calculations (output).