Mathematical Modeling, Computational Thinking, R, High School, Coding.
However, when the code is run, an error message appears: “object ‘snack’ not found” (Figure 5, left panel). When students assess the cause of the error, they realize that the computer program calls for the variable snack on line 9, but it is not created until line 10. The problem is in the sequence