In this project students work independently or collaboratively to calculate the area and volume of an ornamental garden. Using standard mathematical formulas in Python to calculate the area and volume of a pre-defined square plot, the students must build a program that calculates information such as the side length of the finished garden and the recommended spacing between plants. The students must use a variety of functions (such as input(), round(), and print()) to evaluate the user's input and return the proper results. As a project for primarily CS1 students, the problems outlined in the activity are suited for those with experience implementing functions and some level of comfort with implementing basic arithmetic in a programming environment. For students with limited mathematical experience this is a great way to add context around math and programming.
Increase Student-Student Interactions by adding parts where students can test out their program with one another and create other patterns using the same core concept. Incorporate Problem-Based Learning into the activity by including an additional challenge, such as using the calculations to generate a quote for the local parks department that would be used to build out a new cost estimate, that puts the problem within a clearly connected localized "real-world" context.
Utilizes Interdisciplinary Connections to CS by connecting math and computer programming to design. Employs Meaningful and Relevant Content by connecting the task of creating a program to design and calculating info related to creating a garden.