// Numbas version: finer_feedback_settings {"name": "Imperial to metric: feet and inches to centimetres", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Imperial to metric: feet and inches to centimetres", "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": {}, "extensions": [], "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", "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}