It would be nice to be able to capture the values that students enter in a problem for subsequent calculation within the same problem.
I have found some inroads toward accomplishing this.
- Student answers can now be captured and used in subsequent questions using the new externalData.pl functionality (e.g., the linked examples).
- Previously, I found that the inputs_ref variable could capture student answers in gateway quizzes.
- The Custom Answer Checker wiki page describes how variables can be transferred into an answer checker subroutine.
- Some developers weighed in on a similar matter a few years ago in their responses to the linked question.
- Scaffold problems used to permit capturing student data for use in subsequent sections, but this appears to be depreciated in version 2.19.
This issue pertains to an inability to extract values out of an answer checker subroutine. Attached is a MWE demonstrates a simple use case and the limitation. I would appreciate any guidance for accomplishing this task.