Re: Basic question - what question type will accept formula answer
Re: Basic question - what question type will accept formula answer
Re: Basic question - what question type will accept formula answer
There is a tutorial here http://docs.stack-assessment.org/en/AbInitio/
Ooh, and it seems that has been made into videos, if you like that sort of thing: https://www.youtube.com/channel/UCkdewa3GAHr-OCA0QVjd3Ew (I had not seen that until I looked just now.)
Re: Basic question - what question type will accept formula answer
Not my thing either, but must admit that I caught up watching this video things which I missed in-person at MoodleMoot DACH two weeks ago.
Re: Basic question - what question type will accept formula answer
Re: Basic question - what question type will accept formula answer
The Formulas question has four answer types. One of them, the Numeric answer type, is just right for this kind of problem.
With this type of answer, any expression is interpreted as being correct as long as it follows the rules of mathematical writing and, of course, its value is correct. You can put the terms in any order, and even add superfluous decimal point, spaces and parentheses without affecting the interpretation of the expression.
Moreover, with the Formulas question, it is easy to generate random data. In the example below, the first and last names are each randomly selected from ten possible values, resulting in one hundred possible names. The hourly wage is randomly chosen between $15.00 and $32.90 in increments of $0.10, which gives 180 values. The number of hours varies from 4 to 10.5 in half-hour increments, giving 14 possible values. The additional amount factor for travel ranges from 0.3 to 1.0 in increments of 0.1, or 8 possible values, applied to 180 possible hourly wages. The resulting travel allowance rounded to the nearest dollar has 29 possible values.
The example therefore has 10x10x180x14x29 = 7 308 000, i.e. over seven million variations.
Notice that although the expression is written somewhat carelessly, it is still interpreted correctly.
You can try the above example at https://dynamiccourseware.org/course/view.php?id=93§ion=7➚.
Re: Basic question - what question type will accept formula answer
Re: Basic question - what question type will accept formula answer
I added the total pay amount:
I also added a small script that asks to enter the calculation if the student enters the total amount in the calculation box. For example, if the student is required to enter 25.1*7+18 (or an equivalent expression) and instead enters the total value 193.7, which would normally be accepted by the Numeric answer since it is also equivalent, the student will be prompted to enter hir calculation: