Challenge #5
Challenge: What happens to the perimeter if we double one dimension of a rectangle? Both dimensions? What about the area? Create a program that shows how changing one or more dimensions of a rectangle affects the perimeter and area. The program should allow the user to input the length and width of a rectangle. It should then display the area and perimeter along with the statements below.
Doubling the length gives a perimeter of…
Doubling the width gives a perimeter of…
Doubling the length and width gives a perimeter of…
Doubling the length gives an area of…
Doubling the width gives an area of…
Doubling the length and width gives an area of…
Video Tutorial: Finding Perimeter and Area of a Rectangle
Extensions:
Ask the user for a scale factor to multiply the dimensions by. Adjust the statements above accordingly.
Write a program that calculates the surface area and volume of a rectangular prism. What happens to the surface area and volume as you double one, two and three dimensions?
MTH1W Curriculum Links:
C2.1 Use coding to demonstrate an understanding of algebraic concepts including variables, parameters, equations, and inequalities
C2.2 Create code by decomposing situations into computational steps in order to represent mathematical concepts and relationships, and to solve problems
E1.4 Show how changing one or more dimensions of a two-dimensional shape and a three-dimensional object affects perimeter/circumference, area, surface area, and volume, using technology when appropriate