Basic question - what question type will accept formula answer

Basic question - what question type will accept formula answer

Susan Ware發表於
Number of replies: 8
Kia Ora/Hello Everyone

The attached question was done in a pattern match - as I thought this was the best chance of getting an accepted answer.

The answer could be in the format of 28.6*6+12, but could be written as (6*28.6) +12, or 12 + 28.6*6 etc, as long as 28.6*6 is one part and 12 is added as the other.

When I submit this answer 28.6*6+12 it is marked as incorrect - when it is an acceptable answer - any ideas on what I am doing wrong would be appreciated.  Thank you so much.

Kind Regards
Sue
Marked as incorrect but the answer is correct
評比平均分數: -
In reply to Susan Ware

Re: Basic question - what question type will accept formula answer

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
The only question type I know of that could do this reasonably is STACK (specifically with the EqualComAss answer-test. (But be warned that STACK has complex requirements to install.)

You could do it with pattern-match, but then you would have to check for all the possible ways of expressing the answer, and that would quickly become impractical to set up.

I don't think formulas questoin type can do the grading that you want, but I might be wrong.
In reply to Tim Hunt

Re: Basic question - what question type will accept formula answer

Susan Ware發表於
HI Tim

Thanks for your reply - I have the stack question installed and running - but have not used it - so steep learning give but I will give it a go.

Thank you
In reply to Susan Ware

Re: Basic question - what question type will accept formula answer

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
Yes, there is certainly a learning curve.

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.)
In reply to Tim Hunt

Re: Basic question - what question type will accept formula answer

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
"that has been made into videos, if you like that sort of thing"
LOL

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.

In reply to Susan Ware

Re: Basic question - what question type will accept formula answer

Dominique Bauer發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

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.

MoodleForum_20230725_1437.png

You can try the above example at https://dynamiccourseware.org/course/view.php?id=93&section=7➚.

評比平均分數:Useful (1)
In reply to Dominique Bauer

Re: Basic question - what question type will accept formula answer

Susan Ware發表於
Kia Ora/Hello Dominque

This is super awesome and so informative - thank you.  This question does exactly what I wanted it to do and this will help my students significantly.

Tēnā koe/Thank you

Kind Regards
Sue


In reply to Susan Ware

Re: Basic question - what question type will accept formula answer

Dominique Bauer發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

I added the total pay amount:

MoodleForum_20230725_2331.png

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:

MoodleForum_20230725_2332.png

評比平均分數:Useful (1)