Mathematical Modeling, Computational Thinking, R, High School, Coding.
After students reproduce the basic model, they collaborate on a debugging task with a slightly extended version of the model they explored in the previous exercise. A new variable (called snack) is introduced in the code, which represents an additional daily meal that is added to the daily cost.