AnsweredAssumed Answered

Can I use a user-entered response in the answer formula for a Numerical Question?

Question asked by John Pritchett on Oct 13, 2017
Latest reply on Feb 15, 2018 by rogrant@nmsu.edu

If I ask a student to enter a value for x, then enter the output that value elicits from my function, how would I code a variable for the student's input value.

Student screen:

Input a value for x: ____________

What output value would you get for f(**student number here**) if f(x) = x^2 - 7x + 12?

f(**student number here**) = _______________

 

Answer code: $x*$x - 7*$x + 12

 

It's the "$x" that I do not know how to code in Canvas.

Thanks

Outcomes