I want students to compare two fractions and input a less than or greater than sign as input and code for self check. Not sure how to code the solution part to check.
Unlabelled Note CL
content:"Use a greater than (>) or less than (<) sign to make the statements true;
\n(hint: compare fractions once they have a common denominator)
\n\frac{1}{2}
\frac{3}{8}
"
when input3.timeSinceSubmit>0
when input3.script.correct “Excellent!”
otherwise “Almost! Try again.”
Math Input CL (called input3)
correct = “>”
correct: correct
Maybe make a multiple choice question. This way they can see the statement change as well.
In the multiple choice component:
sign = when this.isSelected(1) "<"
when this.isSelected(2) ">"
otherwise "?"
Then, in your question:
content:"Use a greater than (>) or less than (<) sign to make the statements true;
\n(hint: compare fractions once they have a common denominator)
\n\frac{1}{2} ${yourMultipleChoiceName.script.sign} \frac{3}{8}"
Change your directions to “change the ?” or whatever to make more sense.
In the future if you want ≥
or ≤
, use \ge
or \le
.
Thanks. I’ll give that a try.
Inequalities is something I wrestled with for a bit. This was the best I came up with. Here is a link to some example problems I use for domain and range. You can use this input code to go along with your evaluation.