// Numbas version: exam_results_page_options {"name": "Converting imperial to metric and BMI calculations", "feedback": {"allowrevealanswer": true, "showtotalmark": true, "advicethreshold": 0, "intro": "", "feedbackmessages": [], "showanswerstate": true, "showactualmark": true}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": false, "percentPass": 0, "duration": 0, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Imperial to metric: pounds to kilograms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["ephlth", "nursing", "units"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following conversion from imperial to metric units (preferably without the use of a calculator).

", "advice": "", "rulesets": {}, "variables": {"masslb": {"name": "masslb", "group": "Ungrouped variables", "definition": "random(115..290)", "description": "", "templateType": "anything"}, "masskg": {"name": "masskg", "group": "Ungrouped variables", "definition": "masslb*0.4536", "description": "", "templateType": "anything"}, "test": {"name": "test", "group": "Ungrouped variables", "definition": "mod(123.12*100,1)", "description": "", "templateType": "anything"}, "onedec": {"name": "onedec", "group": "Ungrouped variables", "definition": "precround(masskg,1)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["masslb", "masskg", "onedec", "test"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

A patient reports their weight to be {masslb} lb (pounds). Find their weight in kilograms correct to one decimal place by using that $1 \\text{ lb} = 0.4536 \\text{ kg}$. 

\n

\n

Weight $=$ [[0]] kg (1 dec. pl.)

", "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": "

Given $1 \\text{ lb} = 0.4536 \\text{ kg}$, we must have $\\var{masslb} \\text{ lb} = \\var{masslb} \\times 0.4536 \\text{ kg}$.

\n

We could use the calculator for this but we should also be able to do it without one.

\n

Without a calculator we determine $\\var{masslb}\\times 4536$ (which is $\\var{precround(masskg*10000,0)}$) and then move the decimal place so we have four decimal places again (that is $\\var{masskg}$). Once we have done the multiplication we can then round to one decimal place (that is, $\\var{onedec}$ ).

\n

\n

$\\text{Weight} = \\var{masskg}\\text{ kg} = \\var{onedec} \\text{ kg (1 dec. pl)}$

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "onedec", "maxValue": "onedec", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Imperial to metric: stones and pounds to kilograms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["ephlth", "nursing", "units"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following conversion from imperial to metric units (preferably without the use of a calculator).

", "advice": "", "rulesets": {}, "variables": {"totlbs": {"name": "totlbs", "group": "Ungrouped variables", "definition": "masslb+14*massst", "description": "", "templateType": "anything"}, "masskg": {"name": "masskg", "group": "Ungrouped variables", "definition": "totlbs*0.4536", "description": "", "templateType": "anything"}, "onedec": {"name": "onedec", "group": "Ungrouped variables", "definition": "precround(masskg,1)", "description": "", "templateType": "anything"}, "massst": {"name": "massst", "group": "Ungrouped variables", "definition": "random(7..20)", "description": "", "templateType": "anything"}, "st2lb": {"name": "st2lb", "group": "Ungrouped variables", "definition": "14*massst", "description": "", "templateType": "anything"}, "masslb": {"name": "masslb", "group": "Ungrouped variables", "definition": "random(1..13)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["masslb", "masskg", "massst", "onedec", "totlbs", "st2lb"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

A patient reports their weight to be $\\var{massst} \\text{ st (stones) and } \\var{masslb} \\text{ lb (pounds)}$. Find their weight in kilograms correct to one decimal place by using that $1 \\text{ st} = 14 \\text{ lb}$ and $1 \\text{ lb} = 0.4536 \\text{ kg}$.

\n

\n

Weight $=$ [[0]] kg (1 dec. pl.)

", "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": "

$1 \\text{ st} = 14 \\text{lb}$, and so $\\var{massst} \\text{ st}= \\var{massst} \\times 14 \\text{ lbs} = \\var{st2lb} \\text{ lbs}$.

\n

Add on the additional $\\var{masslb} \\text{ lbs}$, and the patient's weight in pounds is $\\var{totlbs} \\text{ lbs}$.

\n

Given $1 \\text{ lb} = 0.4536 \\text{ kg}$, we must have $\\var{totlbs} \\text{ lbs} = \\var{totlbs} \\times 0.4536 \\text{ kg}$.

\n

\n

We could use the calculator for this but we should also be able to do it without one.

\n

Without a calculator we determine $\\var{totlbs}\\times 4536$ (which is $\\var{precround(masskg*10000,0)}$) and then move the decimal place so we have four decimal places again (that is $\\var{masskg}$). Once we have done the multiplication we can then round to one decimal place (that is, $\\var{onedec}$ $\\var{onedec}.0$).

\n

$\\text{Weight} = \\var{masskg}\\text{ kg} = \\var{onedec}.0 \\text{ kg (1 dec. pl)}$

\n

$\\text{Weight} = \\var{masskg}\\text{ kg} = \\var{onedec} \\text{ kg (1 dec. pl)}$

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "onedec", "maxValue": "onedec", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Imperial to metric: feet and inches to centimetres", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["ephlth", "nursing", "units"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following conversion from imperial to metric units.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"hm": {"name": "hm", "group": "Ungrouped variables", "definition": "hcm/100", "description": "", "templateType": "anything", "can_override": false}, "hcm": {"name": "hcm", "group": "Ungrouped variables", "definition": "totin*2.54", "description": "", "templateType": "anything", "can_override": false}, "ft2in": {"name": "ft2in", "group": "Ungrouped variables", "definition": "hft*12", "description": "", "templateType": "anything", "can_override": false}, "hft": {"name": "hft", "group": "Ungrouped variables", "definition": "random(4,5,6)", "description": "", "templateType": "anything", "can_override": false}, "twodec": {"name": "twodec", "group": "Ungrouped variables", "definition": "precround(hm,2)", "description": "", "templateType": "anything", "can_override": false}, "totin": {"name": "totin", "group": "Ungrouped variables", "definition": "12*hft+hin", "description": "", "templateType": "anything", "can_override": false}, "hin": {"name": "hin", "group": "Ungrouped variables", "definition": "random(1..11)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["hft", "hin", "totin", "hcm", "hm", "twodec", "ft2in"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

A patient reports their height to be $\\var{hft}' \\text{ (feet) and }\\var{hin}'' \\text{(inches)}$. Find their height in metres correct to two decimal places by using that $1 \\text{ foot} = 12 \\text { inches}$ and $1 \\text{ inch} = 2.54 \\text{ cm}$.

\n

\n

Height $=$ [[0]] m (2 dec. pl.)

\n

", "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": "

$1 \\text{ foot} = 12 \\text{ inches}$, and so $\\var{hft} \\text{ feet} = \\var{hft} \\times 12 \\text{ inches} = \\var{ft2in} \\text{ inches}$.

\n

Add on the additional $\\var{hin} \\text{ inches}$, and the patient's height in inches is $\\var{totin} \\text{ inches}$.

\n

Given $1 \\text{ inch} = 2.54 \\text{ cm}$, we must have $\\var{totin} \\text{ inches} = \\var{totin} \\times 2.54 \\text{ cm}$.

\n

\n

We could use the calculator for this multiplication but we should also be able to do it without one.

\n

Without a calculator we determine $\\var{totin}\\times 254$ (which is $\\var{precround(hcm*100,0)}$) and then move the decimal place so we have two decimal places again (that is $\\var{hcm} \\text{ cm}$).

\n

Then converting to metres, by moving the decimal place to the left twice, we get 

\n

$\\text{Height} = \\var{hm} \\text{ m}$. 

\n

\n

Now we have the height in metres, we can round to two decimal places (that is, $\\var{twodec}$ m  $\\var{twodec}0$ m $\\var{twodec}.00$ m).

"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "twodec", "maxValue": "twodec", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "BMI calculations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "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": {}, "variables": {"upordown": {"name": "upordown", "group": "Ungrouped variables", "definition": "if(bmi6dec>bmi,\"down\",if(bmi6decA patient has a height of $\\var{height}$ cm and weighs $\\var{mass}$ kg. 

\n

The formula for BMI (Body Mass Index) is

\n

\\[\\text{BMI}=\\frac{\\text{mass (kg)}}{\\text{height (m)}^2}.\\] 

\n

The 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}\\] 

\n

Notice 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. 

\n

Using 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

\n

A few things to remark:

\n"}], "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{bmi}", "maxValue": "{bmi}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "extensions": [], "custom_part_types": [], "resources": []}