// Numbas version: exam_results_page_options {"name": "Converting units of height (feet/inches/cm)", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"js": "", "css": ""}, "type": "question", "name": "Converting units of height (feet/inches/cm)", "parts": [{"stepsPenalty": 0, "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "allowFractions": false, "scripts": {}, "minValue": "cm", "maxValue": "cm", "marks": "2", "variableReplacements": []}], "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "scripts": {}, "showFeedbackIcon": true, "prompt": "
What is {person['name']}'s height in centimetres?
\n[[0]]cm round your answer to the nearest cm
", "steps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "allowFractions": false, "scripts": {}, "minValue": "60", "maxValue": "60", "marks": "0.5", "variableReplacements": [], "prompt": "We have information on how to convert feet to inches and inches to cm, but not feet to cm. We will therefore first convert the height into inches only.
\nWhat is $5$ft in inches?
"}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "allowFractions": false, "scripts": {}, "minValue": "60+inches", "maxValue": "60+inches", "marks": "0.5", "variableReplacements": [], "prompt": "What is {person['name']}'s height in inches?
"}, {"variableReplacementStrategy": "originalfirst", "type": "information", "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "scripts": {}, "showFeedbackIcon": true, "prompt": "We can now use the conversion rate for inches to cm to find {person['name']}'s height in cm.
"}]}, {"variableReplacementStrategy": "originalfirst", "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "precisionMessage": "You have not given your answer to the correct precision.", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "showFeedbackIcon": true, "precisionType": "dp", "correctAnswerStyle": "plain", "allowFractions": false, "scripts": {}, "strictPrecision": false, "minValue": "cm/100", "maxValue": "cm/100", "marks": 1, "variableReplacements": [], "showPrecisionHint": false, "precision": "2", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"]}], "marks": 0, "variableReplacements": [], "scripts": {}, "showFeedbackIcon": true, "prompt": "What is {person['name']}'s height in metres?
\n[[0]]m round your answer to 2 decimal places
\n"}], "advice": "\n\n{person['name']} is $5$ft $\\var{inches}$ inches tall.
\nTo find {person['name']}'s height into cm, we first convert it into inches.
\nWe can convert feet into inches by multiplying by $12$. So $5$ feet is
\n\\[ 5\\times12=60 \\text{ inches.}\\]
\nTherefore $5$ft $\\var{inches}$ inches is
\n\\[
60+\\var{inches} = \\var{60+inches}\\text{ inches.}
\\]
We can now convert this to cm by multiplying by $2.54$.
\n\\[\\var{60+inches}\\times2.54=\\var{cm}\\text{ cm, rounded to the nearest integer.}\\]
\nTo convert centimetres into metres, we divide by $100$:
\n\\[\\var{cm}\\div100=\\var{dpformat(cm/100,2)} \\text{ metres.}\\]
\nTherefore, {person['name']} is $\\var{dpformat(cm/100,2)}$ metres tall.
\n\n", "tags": ["taxonomy"], "variables": {"cm": {"templateType": "anything", "description": "", "definition": "precround((inchfeet*2.54),0)", "name": "cm", "group": "Ungrouped variables"}, "inchfeet": {"templateType": "anything", "description": "", "definition": "(5*12)+inches", "name": "inchfeet", "group": "Ungrouped variables"}, "person": {"templateType": "anything", "description": "", "definition": "random_person()", "name": "person", "group": "Ungrouped variables"}, "s": {"templateType": "anything", "description": "", "definition": "if(person['gender']='neutral','','s')", "name": "s", "group": "Ungrouped variables"}, "inches": {"templateType": "anything", "description": "", "definition": "random(4..11)", "name": "inches", "group": "Ungrouped variables"}}, "rulesets": {}, "extensions": ["random_person"], "functions": {}, "ungrouped_variables": ["person", "inches", "inchfeet", "cm", "s"], "statement": "{person['name']} is $5$ft $\\var{inches}$ inches tall and would like to find {person['pronouns']['their']} height in cm.
\n{capitalise(person['pronouns']['they'])} find{s} the following unit conversion table:
\n$1$ foot | \n$12$ inches | \n
$1$ inch | \n$2.54$ cm | \n
$1$ metre | \n$100$ cm | \n
Convert a height given in feet and inches into cm and then metres.
"}, "variablesTest": {"condition": "", "maxRuns": "1000"}, "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}]}], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}