// Numbas version: exam_results_page_options {"name": "Converting units of length (km/m/miles)", "extensions": ["random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"miles": {"templateType": "anything", "definition": "km*km_to_miles", "description": "", "name": "miles", "group": "Ungrouped variables"}, "location": {"templateType": "anything", "definition": "random('Boston', 'Edinburgh', 'Great Welsh', 'London')", "description": "", "name": "location", "group": "Ungrouped variables"}, "km_to_miles": {"templateType": "anything", "definition": "0.62", "description": "

conversion rate km to miles

", "name": "km_to_miles", "group": "Ungrouped variables"}, "person": {"templateType": "anything", "definition": "random_person()", "description": "", "name": "person", "group": "Ungrouped variables"}, "km": {"templateType": "anything", "definition": "random(24..28#2)", "description": "", "name": "km", "group": "Ungrouped variables"}}, "type": "question", "name": "Converting units of length (km/m/miles)", "parts": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "marks": 0, "showCorrectAnswer": true, "variableReplacements": [], "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "km*1000", "maxValue": "km*1000", "marks": 1, "variableReplacements": []}], "prompt": "

The week before the event, {person['name']} goes on a final training run. An app on {person['pronouns']['their']} phone tells {person['pronouns']['them']} that {person['pronouns']['they']} ran $\\var{km}$ km. 

\n

What was the length of {person['pronouns']['their']} training run in metres?

\n

[[0]] metres. 

\n

\n

"}, {"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "marks": 0, "showCorrectAnswer": true, "variableReplacements": [], "gaps": [{"correctAnswerFraction": false, "precisionType": "dp", "type": "numberentry", "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "showCorrectAnswer": true, "precisionPartialCredit": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "strictPrecision": false, "maxValue": "miles+0.5", "precision": 0, "marks": 1, "mustBeReduced": false, "variableReplacements": [], "minValue": "miles-0.5", "mustBeReducedPC": 0, "precisionMessage": "You have not given your answer to the correct precision."}], "prompt": "

Use the approximate conversion, $1$ kilometre = $0.62$ miles, to find the length of {person['pronouns']['their']} training run in miles. 

\n

[[0]] miles.      Round your answer to the nearest mile. 

"}, {"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "marks": 0, "showCorrectAnswer": true, "variableReplacements": [], "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "42-0.5", "maxValue": "42+0.5", "marks": 1, "variableReplacements": []}], "prompt": "

{person['name']} knows that the {location} Marathon is 26 miles. Use the conversion rate in part b) to find the approximate length in km.

\n

[[0]] km        round your answer to the nearest km

"}], "advice": "

a)

\n

{person['name']}'s training run is $\\var{km}$ km long. 

\n

To convert $\\var{km}$ km into metres, we multiply $\\var{km}$ by $1000$. 

\n

\\[\\var{km}\\times1000= \\var{km*1000}\\text{ metres.}\\]

\n

\n

b)

\n

To convert $\\var{km}$ km into miles, we multiply $\\var{km}$ by the conversion rate given: $0.62$.

\n

\\[\\begin{align}
\\var{km}\\times\\frac{5}{8}&= \\var{miles}\\\\
&=\\var{dpformat(miles,0)}\\text{ miles, rounded to the nearest integer.}
\\end{align}\\]

\n

c)

\n

The {location} Marathon is $26$ miles long. To convert to km we multiply by the inverse of the conversion rate given in part b):

\n

\\[ 26 \\times \\frac{1}{0.62} = 42\\text{ miles, rounded to the nearest integer.} \\]

\n

", "tags": ["taxonomy"], "preamble": {"js": "", "css": ""}, "rulesets": {}, "extensions": ["random_person"], "functions": {}, "ungrouped_variables": ["km_to_miles", "km", "miles", "person", "location"], "statement": "

{person['name']} is training for the {location} Marathon.

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Convert from km to metres and miles, and miles to km.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "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/"}]}