So, I really don’t know any coding. I just copy, paste and try to adjust code from other activities. The last activity I worked on, google AI helped me fix some errors I was having, so I was hoping it would help me on the CL for this assignment I am working on. After 2 hours of it telling me something will work perfectly, and then it doesn’t, I’m at a loss.
I want students to find the regression equation (I’m trying to make the coding universal for “any” function type (linear, quadratic, exponential, logarithmic)), and allow for truncating, rounding, or more precise than asked for coefficients, as well as R^2 values.
I don’t have any errors in the CL coding, but when I check in preview mode, both the student screen and the teacher dashboard are showing incorrect.
Did you get this figured? Screen 1 for example looks like it’s working for me in preview. Can you clarify which screen has the closest to what you envision?
Do you want students to be able to enter any function type? Or do you mean the correct function type?
I’m thinking you may need a very broad pattern with “optional” parts that could be parsed for all types.
ChatGPT was able to help me figure it out. (It did a much better than Gemini.)
I didn’t want to create a CL that only worked for linear functions, and then need to create a whole new methodology for grading an exponential or a quadratic, etc function.
I ended up using a few different methods for the various function types, which I think was more effective than trying to get one methodology that would work for everything effectively.
Here is the activity if anyone is looking for similar ideas.