// Numbas version: exam_results_page_options {"name": "BMI calculations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "BMI calculations", "tags": ["ephlth", "nursing"], "metadata": {"description": "
Given the formula for BMI, students are asked to determine a patient's BMI given their height in cm (as people usually do) and their mass in kg.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate the following with the use of a calculator.
", "advice": "", "rulesets": {}, "extensions": [], "variables": {"upordown": {"name": "upordown", "group": "Ungrouped variables", "definition": "if(bmi6dec>bmi,\"down\",if(bmi6decThe formula for BMI (Body Mass Index) is
\n\\[\\text{BMI}=\\frac{\\text{mass (kg)}}{\\text{height (m)}^2}.\\]
\nThe patient's BMI to two decimal places is [[0]].
", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The equation for BMI is
\n\\[\\text{BMI}=\\frac{\\text{mass (kg)}}{\\text{height (m)}^2}\\]
\nNotice the units in the formula are kilograms and metres. We convert the $\\var{height}$ cm into metres by moving the decimal point twice to the left to get $\\var{height/100}$ m.
\nUsing a scientific calculator you can type in \\[\\var{mass}\\div \\var{height/100}^2\\] or by using the fraction button you may be able to type in \\[\\frac{\\var{mass}}{\\var{height/100}^2}\\] and it will give you something like $\\var{bmi6dec}$ which you need to round {upordown} to two decimal places and get $\\var{bmi}$ $\\var{bmi}0$ $\\var{bmi}.00$
\n\n\nA few things to remark:
\n