I am trying to code the tables in my activity to provide the orange triangles if a student types in an incorrect answer. I know how to do it if it is one linear equation, but the problem is that it is a system of inequalities. Can that be done? If that cannot be done, can I code the tables to give me a check or an x in the teacher dashboard?
What have you been using for linear equations? You can use simpleFunction. You just need to specify 2 parameters. So for children, x, and adults, y (or whatever letter you want to use). Repeat for each row changing the cell coordinates.
seat=simpleFunction("x+y","x","y") #theater seating
t=simpleFunction("5x+10y","x","y") #ticket revenue
cellErrorMessage(1,2): when isBlank(this.cellContent(1,1)) or isBlank(this.cellContent(1,2)) ""
when seat.evaluateAt(this.cellNumericValue(1,1),this.cellNumericValue(1,2))>250 "We don't have enough seats!"
when t.evaluateAt(this.cellNumericValue(1,1),this.cellNumericValue(1,2))<2000 "We need to make more money."
otherwise ""
Or if you don’t care about the feedback in the error message (you need to hover over the to see it):
cellSuffix(1,2): when isBlank(this.cellContent(1,1)) or isBlank(this.cellContent(1,2)) ""
when seat.evaluateAt(this.cellNumericValue(1,1),this.cellNumericValue(1,2))<=250 and
t.evaluateAt(this.cellNumericValue(1,1),this.cellNumericValue(1,2))>=2000 "✅"
otherwise "⚠️"