WIRIS cas for the student

If we want to allow the student to make calculations with WIRIS calculator, to facilitate things or because we want, precisely, to evaluate his/her use of the tool, we can provide access to a WIRIS cas session in the same questionnaire.

The student will see the question as follows:

To enable this functionality, you just have to check the corresponding box in the WIRIS quizzes section of the Moodle question, located at the end of the question (in the last image of this section you can see it in context):

Besides, we can decide if the student session will have any calculation by default, maybe an indication of what to do or a step previous to what we are requesting. To insert the initial content of the WIRIS cas session, you just have to click the  button, insert the content desired in the session and click Accept to save the content.

Please note that you can only have a WIRIS cas session if the student is allowed to use also WIRIS editor to insert the answer. If we WIRIS editor box is not enabled in WIRIS quizzes section, the box that allows us to insert a WIRIS cas session for the student will be disabled.

We see the student has a WIRIS cas session to perform the desired calculations and, besides, s/he has the Copy answer button, that will copy the last calculation from the session and paste it in the formula editor. Thus, once the student has made some calculations in WIRIS cas session, copying the answer to the formula editor is not required. S/he just has to click the Copy answer button and it will automatically appear in the formula editor, and can be modified previously if the students finds it appropriate. 

Two clarifications are necessary regarding the Copy answer button:

  • The Copy answer button will copy the last result calculated and returned in WIRIS cas, that is, the last element to the right of a red arrow. In our example, there is a single element available, since we avoided the display of other results in WIRIS cas with the ; character. Furthermore, if we did not request WIRIS cas to evaluate the expressions inserted, the editor will not receive any element from WIRIS cas, despite there are data inserted in the session (not evaluated).

                   
     
  • In case of a Compound short answer, the definitions of the variables requested will be sought and copied in the appropriate format, that is: variable_name=value. In this case, the variables being the last calculation of the WIRIS cas session is not important.

As usual, for completeness purposes, we present the calculations performed in the development of the question:

  • We obtain first the three random integers a, b and c and we make sure the first two are different from zero.
  • We define the r line with these values.
  • We define a p random point out of the r line.
  • We calculate the s answer with the perpendicular WIRIS command.
  • We draw the line and the point on a plotter to present it in the wording.