Good Morning,
I am having difficulty writing feedback for an MCQ for an activity I am working on. I am unable to display the right feedback for a selection that is incorrect, the same feedback is coming up with each answer. I have tried to name each choice and refer back to them, but that is not working.
Any help is much appreciated.
<section boxed><title>Check Your Understanding</title>
<graph grid="1 1" fixed size="small">
<function>1/2(x-3)^2-4</function>
</graph>
<exercise>
The graph of <m>g(x)</m> shown above is the transformation of the parent function <m>f(x)=x^2</m>. Which
equation correctly describes <m>g(x)</m>?
<answer name="ans" creditByAttempt="1 0.7 0.5" shuffleOrder maxNumAttempts="3"><shortDescription>MCQ</shortDescription>
<choice name="a"><m>g(x)=2(x+3)^2-4</m></choice>
<choice credit="1"><m>g(x)=\frac12(x-3)^2-4</m></choice>
<choice name="c"><m>g(x)=\frac{1}{2}(x+3)^4-4</m></choice>
<choice name="d"><m>g(x)=\left(\frac{1}{2}x-3\right)^2-4</m></choice>
</answer>
<feedback condition="$ans != $c and $ans.responseHasBeenSubmitted">
Check your horizontal Shift
</feedback>
<feedback condition="ans ! = $d and $ans.responseHasBeenSubmitted">
The dilation should be vertical, not horizontal. </feedback>
<feedback condition="$ans ! =$a and $ans.responseHasBeenSubmitted">
<p>Check your horizontal shift. You should be moving right 3 units, not left. Also, please check your vertical dilation which should be a vertical shrink, not stretch. </p>
</feedback>
</exercise>