// Numbas version: exam_results_page_options {"name": "Maria's copy of 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": [{"ungrouped_variables": ["hft", "hin", "totin", "hcm", "hm", "twodec", "ft2in"], "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "rulesets": {}, "extensions": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "name": "Maria's copy of Imperial to metric: feet and inches to centimetres", "advice": "", "tags": ["ephlth", "nursing", "units"], "variables": {"ft2in": {"definition": "hft*12", "description": "", "name": "ft2in", "templateType": "anything", "group": "Ungrouped variables"}, "hcm": {"definition": "totin*2.54", "description": "", "name": "hcm", "templateType": "anything", "group": "Ungrouped variables"}, "twodec": {"definition": "precround(hm,2)", "description": "", "name": "twodec", "templateType": "anything", "group": "Ungrouped variables"}, "hin": {"definition": "random(1..11)", "description": "", "name": "hin", "templateType": "anything", "group": "Ungrouped variables"}, "totin": {"definition": "12*hft+hin", "description": "", "name": "totin", "templateType": "anything", "group": "Ungrouped variables"}, "hft": {"definition": "random(4,5,6)", "description": "", "name": "hft", "templateType": "anything", "group": "Ungrouped variables"}, "hm": {"definition": "hcm/100", "description": "", "name": "hm", "templateType": "anything", "group": "Ungrouped variables"}}, "parts": [{"stepsPenalty": "1", "type": "gapfill", "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

Note: even if their height is, say $1.6$ m, type in $1.60$

", "scripts": {}, "sortAnswers": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "marks": 0, "steps": [{"type": "information", "marks": 0, "scripts": {}, "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).

", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true}], "unitTests": [], "gaps": [{"strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "mustBeReduced": false, "minValue": "{hm}", "precisionPartialCredit": "50", "precisionType": "dp", "precision": "2", "allowFractions": false, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "type": "numberentry", "scripts": {}, "maxValue": "{hm}", "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "showPrecisionHint": false, "mustBeReducedPC": 0, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision."}], "customMarkingAlgorithm": "", "variableReplacements": [], "showFeedbackIcon": true}], "functions": {}, "statement": "

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

", "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}