// Numbas version: exam_results_page_options {"name": "NA BMI formula and table (10+)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/BMI_table.png", "/srv/numbas/media/question-resources/BMI_table.png"], ["question-resources/BMI_formula_cropped.png", "/srv/numbas/media/question-resources/BMI_formula_cropped.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA BMI formula and table (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students are given a height (in cm) and weight (kg), then need to calculate the BMI given the formula (first converting height to m), then determine the weight range from the table. Weight and height are randomised.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

The Body Mass Index is a way to determine whether an adult's weight is in the healthy range. It is calculated using a formula that takes height and weight as inputs.

\n

The formula for calculating the BMI is given below:

\n

\n

The BMI is rounded to 1 decimal place.

\n

The BMI table below can be used to determine the weight range (or band) for a given BMI.

\n

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
BMIWeight range
Less than 17   Very Underweight
17 - 18.4Underweight
18.5 - 24.9Healthy Weight Range
25 - 29.9Overweight
30 - 34.9Obese
35 or greaterSeverely Obese
\n










", "advice": "

The BMI formula requires the height to be in metres.

\n

Convert the given height in centimetres by dividing it by 100.

\n

{height} cm ÷ 100 = {decimal(height/100)} m.

\n

Now substitute the given height and weight into the BMI formula.

\n

BMI = $ \\frac {Weight} {Height^{2}} $

\n

BMI = $ \\frac {\\var{weight}} {({\\var{height/100}} \\times {\\var{height/100}})} $    

\n

BMI = {precround(10000*weight/(height*height),6)}...          

\n

This BMI value must now be rounded to one decimal place, so BMI = {bmi}.

\n

Finally, locate this value in the table to determine the Weight range.

\n

A person with height {height} cm and weight {weight} kg is in the {cat} range.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"weight": {"name": "weight", "group": "Ungrouped variables", "definition": "random(40 .. 120#1)", "description": "
\n
\n
\n
\n

The randomly generated weight (in kg).

", "templateType": "randrange", "can_override": false}, "cat": {"name": "cat", "group": "Ungrouped variables", "definition": "switch({bmi}<17,\"Very Underweight\",{bmi}<18.5,\"Underweight\",{bmi}<25,\"Healthy Weight\",{bmi}<30,\"Overweight\",{bmi}<35,\"Obese\",\"Severely Obese\")", "description": "
\n
\n
\n
\n
\n

The category that the calculated BMI falls into. The variable cat is used within Marks, in the Choices section of Parts, to determine whether the student's answer is correct. All six categories must be offered as options (choices) for this to work.

", "templateType": "anything", "can_override": false}, "bmi": {"name": "bmi", "group": "Ungrouped variables", "definition": "precround(10000*weight/(height*height),1)", "description": "
\n
\n
\n
\n
\n
\n
\n

The BMI for the randomly generated height and weight. The height in cm is converted to metres.

", "templateType": "anything", "can_override": false}, "height": {"name": "height", "group": "Ungrouped variables", "definition": "random(150 .. 190#1)", "description": "
\n
\n
\n
\n

The randomly generated height (in cm). 

", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["weight", "height", "bmi", "cat"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "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": "
\n

Which weight range would a person be in, if their height is {height} cm and their weight is {weight} kg?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Very Underweight", "
\nUnderweight", "
\nHealthy Weight", "
\nOverweight", "
\nObese", "
\nSeverely Obese"], "matrix": ["if({cat}=\"Very Underweight\",1,0)", "if({cat}=\"Underweight\",1,0)", "if({cat}=\"Healthy Weight\",1,0)", "if({cat}=\"Overweight\",1,0)", "if({cat}=\"Obese\",1,0)", "if({cat}=\"Severely Obese\",1,0)"], "distractors": ["Click on the 'Reveal answers' button for a worked solution.", "Click on the 'Reveal answers' button for a worked solution.", "Click on the 'Reveal answers' button for a worked solution.", "Click on the 'Reveal answers' button for a worked solution.", "Click on the 'Reveal answers' button for a worked solution.", "Click on the 'Reveal answers' button for a worked solution."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}