How to add BMI calculation in quiz?

How to add BMI calculation in quiz?

de Stefano Guglielmetti -
Número de respuestas: 2

Hi everyone,

I would like to insert a question in which the participant has to enter two numerical answers (weight & height) to obtain a result (the BMI).

The two values must then be translated into BMI through the formula = weight / (height*height).

Is it possible to use one or more question types for this objective?

Thank you!

Promedio de valoraciones: -
En respuesta a Stefano Guglielmetti

Re: How to add BMI calculation in quiz?

de Dominique Bauer -
Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Plugin developers

Hello Stefano,

You can easily do it with the Formulas question type, using grading variables and criterion which are standard features.

You will find attached the XML file of an example that I prepared for you and of which you are the co-contributor if you wish. You can also try the example here ↗.

I fleshed out the feedback a bit, but didn't go further with other formatting considerations as I don't know your specific needs. It is possible to modify the question to enter the weight in cm or in m and cm, to use the decimal comma, to use the two systems of units, metric and US, etc.

ForumQuiz_20210215_2257.png